mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
feat(ui): Hide Back button on TV player
This commit is contained in:
parent
d3828eeafe
commit
611dd688d5
3 changed files with 22 additions and 16 deletions
|
@ -702,7 +702,7 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
|
||||||
playerCenterMenu.isGone = isGone
|
playerCenterMenu.isGone = isGone
|
||||||
playerLock.isGone = !isShowing
|
playerLock.isGone = !isShowing
|
||||||
//player_media_route_button?.isClickable = !isGone
|
//player_media_route_button?.isClickable = !isGone
|
||||||
playerGoBackHolder.isGone = isGone
|
playerGoBackHolder.isGone = isLayout(TV or EMULATOR)
|
||||||
playerSourcesBtt.isGone = isGone
|
playerSourcesBtt.isGone = isGone
|
||||||
playerSkipEpisode.isClickable = !isGone
|
playerSkipEpisode.isClickable = !isGone
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,8 +48,6 @@
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:focusableInTouchMode="true"
|
android:focusableInTouchMode="true"
|
||||||
android:nextFocusLeft="@id/player_loading_go_back"
|
|
||||||
android:nextFocusUp="@id/player_loading_go_back"
|
|
||||||
android:text="@string/skip_loading"
|
android:text="@string/skip_loading"
|
||||||
|
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
|
@ -62,11 +60,13 @@
|
||||||
android:layout_height="50dp"
|
android:layout_height="50dp"
|
||||||
android:layout_gravity="center" />
|
android:layout_gravity="center" />
|
||||||
|
|
||||||
|
<!-- Hide the back button for now maybe we need it later -->
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/video_go_back_holder_holder"
|
android:id="@+id/video_go_back_holder_holder"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="5dp"
|
android:layout_margin="5dp"
|
||||||
|
android:visibility="gone"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
|
|
@ -240,7 +240,7 @@
|
||||||
android:id="@+id/player_video_title"
|
android:id="@+id/player_video_title"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="end"
|
android:gravity="center"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
|
@ -250,25 +250,28 @@
|
||||||
android:id="@+id/player_video_title_rez"
|
android:id="@+id/player_video_title_rez"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="end"
|
android:gravity="center"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
tools:text="1920x1080" />
|
tools:text="1920x1080" />
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
android:id="@+id/player_episode_filler_holder"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="end"
|
|
||||||
android:layout_marginTop="2dp">
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
|
||||||
android:id="@+id/player_episode_filler"
|
|
||||||
style="@style/SmallBlackButton"
|
|
||||||
android:text="@string/filler" />
|
|
||||||
</FrameLayout>
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/player_episode_filler_holder"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="end"
|
||||||
|
android:layout_marginTop="20dp">
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/player_episode_filler"
|
||||||
|
style="@style/SmallBlackButton"
|
||||||
|
android:focusable="false"
|
||||||
|
android:text="@string/filler" />
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
<!-- Removed as it has no use anymore-->
|
<!-- Removed as it has no use anymore-->
|
||||||
<!--<androidx.mediarouter.app.MediaRouteButton
|
<!--<androidx.mediarouter.app.MediaRouteButton
|
||||||
android:id="@+id/player_media_route_button"
|
android:id="@+id/player_media_route_button"
|
||||||
|
@ -281,11 +284,13 @@
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />-->
|
app:layout_constraintTop_toTopOf="parent" />-->
|
||||||
|
|
||||||
|
<!-- Hide the back button for now maybe we need it later -->
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/player_go_back_holder"
|
android:id="@+id/player_go_back_holder"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="5dp"
|
android:layout_margin="5dp"
|
||||||
|
android:visibility="gone"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
@ -306,6 +311,7 @@
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:contentDescription="@string/go_back_img_des"
|
android:contentDescription="@string/go_back_img_des"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
|
android:visibility="gone"
|
||||||
android:tag="@string/tv_no_focus_tag" />
|
android:tag="@string/tv_no_focus_tag" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue