Merge pull request #15 from DaDiaoo/main

播放状态栏增加刷新
pull/21/head^2
q215613905 3 years ago committed by GitHub
commit 6af5021b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      app/src/main/java/com/github/tvbox/osc/player/controller/VodController.java
  2. 15
      app/src/main/res/layout/player_vod_control_view.xml

@ -97,6 +97,7 @@ public class VodController extends BaseController {
TextView mPlayerBtn;
TextView mPlayerIJKBtn;
TextView mPlayerRetry;
TextView mPlayrefresh;
TextView mPlayerTimeStartBtn;
TextView mPlayerTimeSkipBtn;
TextView mPlayerTimeStepBtn;
@ -119,6 +120,7 @@ public class VodController extends BaseController {
mParseRoot = findViewById(R.id.parse_root);
mGridView = findViewById(R.id.mGridView);
mPlayerRetry = findViewById(R.id.play_retry);
mPlayrefresh = findViewById(R.id.play_refresh);
mNextBtn = findViewById(R.id.play_next);
mPreBtn = findViewById(R.id.play_pre);
mPlayerScaleBtn = findViewById(R.id.play_scale);
@ -196,6 +198,13 @@ public class VodController extends BaseController {
hideBottom();
}
});
mPlayrefresh.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
listener.replay(false);
hideBottom();
}
});
mNextBtn.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
@ -638,4 +647,4 @@ public class VodController extends BaseController {
}
return false;
}
}
}

@ -74,6 +74,19 @@
android:text="重播本集"
android:textColor="@android:color/white"
android:textSize="@dimen/ts_24" />
<TextView
android:id="@+id/play_refresh"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/vs_5"
android:layout_marginRight="@dimen/vs_5"
android:background="@drawable/button_dialog_main"
android:focusable="true"
android:padding="@dimen/vs_10"
android:text="刷新"
android:textColor="@android:color/white"
android:textSize="@dimen/ts_24" />
<TextView
android:id="@+id/play_scale"
@ -387,4 +400,4 @@
android:tag="vod_control_loading"
android:visibility="gone" />
</FrameLayout>
</FrameLayout>

Loading…
Cancel
Save