FullScreenVideoController.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package com.edufound.reader.cusview;
  2. import android.content.Context;
  3. import android.view.LayoutInflater;
  4. import android.widget.FrameLayout;
  5. import android.widget.ImageView;
  6. import android.widget.SeekBar;
  7. import android.widget.TextView;
  8. import com.edufound.reader.R;
  9. public class FullScreenVideoController {
  10. FrameLayout mController;
  11. ImageView mControllerBack;
  12. TextView mControllerVideoName;
  13. ImageView mControllerLittleIcon;
  14. SeekBar mControllerSeekBar;
  15. TextView mControllerCurTime;
  16. ImageView mControllerCenterStatus;
  17. ImageView mControllerLoading;
  18. public FullScreenVideoController(Context context) {
  19. this.mController = (FrameLayout) LayoutInflater.from(context).inflate(R.layout.player_controller, null);
  20. initControllView();
  21. }
  22. void initControllView() {
  23. mControllerBack = mController.findViewById(R.id.player_controller_back);
  24. mControllerVideoName = mController.findViewById(R.id.player_controller_videoname);
  25. mControllerLittleIcon = mController.findViewById(R.id.player_controller_little_icon);
  26. mControllerSeekBar = mController.findViewById(R.id.player_controller_seekbar);
  27. mControllerSeekBar = mController.findViewById(R.id.player_controller_seekbar);
  28. mControllerCurTime = mController.findViewById(R.id.player_controller_current);
  29. mControllerCenterStatus = mController.findViewById(R.id.player_controller_status);
  30. mControllerLoading = mController.findViewById(R.id.player_controller_loading);
  31. }
  32. public FrameLayout getController() {
  33. return this.mController;
  34. }
  35. }