aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-08-04 06:01:42 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-08-04 06:01:42 +0000
commit27173031a1d2f0b5cb79b56ebfefea1939aa2525 (patch)
tree2816412c310a1bd305c7d705c01168bab9375a43 /app/src/main/res
parent123898c946ffe2e7c325f9883fb221d69268cd71 (diff)
downloadinfinity-for-reddit-27173031a1d2f0b5cb79b56ebfefea1939aa2525.tar
infinity-for-reddit-27173031a1d2f0b5cb79b56ebfefea1939aa2525.tar.gz
infinity-for-reddit-27173031a1d2f0b5cb79b56ebfefea1939aa2525.tar.bz2
infinity-for-reddit-27173031a1d2f0b5cb79b56ebfefea1939aa2525.tar.lz
infinity-for-reddit-27173031a1d2f0b5cb79b56ebfefea1939aa2525.tar.xz
infinity-for-reddit-27173031a1d2f0b5cb79b56ebfefea1939aa2525.tar.zst
infinity-for-reddit-27173031a1d2f0b5cb79b56ebfefea1939aa2525.zip
Use bottom toolbar in ViewImgurVideoFragment is available.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/exo_playback_control_view.xml40
-rw-r--r--app/src/main/res/layout/fragment_view_imgur_video.xml14
2 files changed, 44 insertions, 10 deletions
diff --git a/app/src/main/res/layout/exo_playback_control_view.xml b/app/src/main/res/layout/exo_playback_control_view.xml
index 17b332ef..b81b5026 100644
--- a/app/src/main/res/layout/exo_playback_control_view.xml
+++ b/app/src/main/res/layout/exo_playback_control_view.xml
@@ -83,4 +83,44 @@
</LinearLayout>
+ <com.google.android.material.bottomappbar.BottomAppBar
+ android:id="@+id/bottom_navigation_exo_playback_control_view"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom"
+ android:backgroundTint="#80000000"
+ android:visibility="gone"
+ style="@style/Widget.MaterialComponents.BottomAppBar">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <TextView
+ android:id="@+id/title_text_view_exo_playback_control_view"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_gravity="center_vertical"
+ android:gravity="center_vertical"
+ android:paddingTop="8dp"
+ android:paddingBottom="8dp"
+ android:textColor="#FFFFFF"
+ android:textSize="?attr/font_20"
+ android:fontFamily="?attr/font_family"
+ android:maxLines="1"
+ android:ellipsize="end" />
+
+ <ImageView
+ android:id="@+id/download_image_view_exo_playback_control_view"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="16dp"
+ android:src="@drawable/ic_file_download_toolbar_white_24dp"
+ android:background="?attr/selectableItemBackgroundBorderless" />
+
+ </LinearLayout>
+
+ </com.google.android.material.bottomappbar.BottomAppBar>
+
</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_view_imgur_video.xml b/app/src/main/res/layout/fragment_view_imgur_video.xml
index 19331536..824a6b02 100644
--- a/app/src/main/res/layout/fragment_view_imgur_video.xml
+++ b/app/src/main/res/layout/fragment_view_imgur_video.xml
@@ -1,15 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<com.google.android.exoplayer2.ui.PlayerView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:id="@+id/player_view_view_imgur_video_fragment"
xmlns:app="http://schemas.android.com/apk/res-auto"
- tools:context=".fragments.ViewImgurVideoFragment">
-
- <com.google.android.exoplayer2.ui.PlayerView
- android:id="@+id/player_view_view_imgur_video_fragment"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:controller_layout_id="@layout/exo_playback_control_view"/>
-
-</RelativeLayout> \ No newline at end of file
+ app:controller_layout_id="@layout/exo_playback_control_view"
+ tools:context=".fragments.ViewImgurVideoFragment" /> \ No newline at end of file