|
@@ -43,8 +43,9 @@ public class VideoPresenter extends BasePresenter<VideoModel, VideoActivityView>
|
|
|
|
|
|
VideoData mVideoData;
|
|
|
FrameLayout videoController;
|
|
|
+ ImageView mControllerTopBack;
|
|
|
FrameLayout mControllerCenter;
|
|
|
- FrameLayout mControllerTop;
|
|
|
+ LinearLayout mControllerTop;
|
|
|
LinearLayout mControllerBottom;
|
|
|
ImageView mPosterImage;
|
|
|
TextView mTextTitle;
|
|
@@ -79,8 +80,9 @@ public class VideoPresenter extends BasePresenter<VideoModel, VideoActivityView>
|
|
|
private void setVideoController() {
|
|
|
LayoutInflater layoutInflater = LayoutInflater.from(getView().getBaseActivity());
|
|
|
videoController = (FrameLayout) layoutInflater.inflate(R.layout.video_controller, null);
|
|
|
- mControllerCenter = videoController.findViewById(R.id.video_controller_center);
|
|
|
mControllerTop = videoController.findViewById(R.id.video_controller_top);
|
|
|
+ mControllerTopBack = videoController.findViewById(R.id.video_controller_top_back);
|
|
|
+ mControllerCenter = videoController.findViewById(R.id.video_controller_center);
|
|
|
mControllerBottom = videoController.findViewById(R.id.video_controller_bottom);
|
|
|
mPosterImage = videoController.findViewById(R.id.video_controller_poster);
|
|
|
mTextTitle = videoController.findViewById(R.id.video_controller_title);
|
|
@@ -98,6 +100,12 @@ public class VideoPresenter extends BasePresenter<VideoModel, VideoActivityView>
|
|
|
|
|
|
|
|
|
private void initListener() {
|
|
|
+ mControllerTopBack.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+ getView().getBaseActivity().finish();
|
|
|
+ }
|
|
|
+ });
|
|
|
mStatusBtnImg.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(View view) {
|