aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-08-04 05:18:30 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-08-04 05:18:30 +0000
commit123898c946ffe2e7c325f9883fb221d69268cd71 (patch)
treeb33408537aae12f60de30526acefb81f2bb83404 /app/src/main/res
parentf0c275e9adccb3f2baf993dfd239c28d9757c8a6 (diff)
downloadinfinity-for-reddit-123898c946ffe2e7c325f9883fb221d69268cd71.tar
infinity-for-reddit-123898c946ffe2e7c325f9883fb221d69268cd71.tar.gz
infinity-for-reddit-123898c946ffe2e7c325f9883fb221d69268cd71.tar.bz2
infinity-for-reddit-123898c946ffe2e7c325f9883fb221d69268cd71.tar.lz
infinity-for-reddit-123898c946ffe2e7c325f9883fb221d69268cd71.tar.xz
infinity-for-reddit-123898c946ffe2e7c325f9883fb221d69268cd71.tar.zst
infinity-for-reddit-123898c946ffe2e7c325f9883fb221d69268cd71.zip
Use bottom toolbar in ViewRedditGalleryImageOrGifFragment is available.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/fragment_view_reddit_gallery_image_or_gif.xml63
1 files changed, 60 insertions, 3 deletions
diff --git a/app/src/main/res/layout/fragment_view_reddit_gallery_image_or_gif.xml b/app/src/main/res/layout/fragment_view_reddit_gallery_image_or_gif.xml
index 7f27835d..b41c5600 100644
--- a/app/src/main/res/layout/fragment_view_reddit_gallery_image_or_gif.xml
+++ b/app/src/main/res/layout/fragment_view_reddit_gallery_image_or_gif.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/constraintLayout"
@@ -11,7 +11,7 @@
android:id="@+id/progress_bar_view_reddit_gallery_image_or_gif_fragment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_centerInParent="true" />
+ android:layout_gravity="center" />
<com.github.piasy.biv.view.BigImageView
android:id="@+id/image_view_view_reddit_gallery_image_or_gif_fragment"
@@ -39,4 +39,61 @@
</LinearLayout>
-</RelativeLayout> \ No newline at end of file
+ <com.google.android.material.bottomappbar.BottomAppBar
+ android:id="@+id/bottom_navigation_view_reddit_gallery_image_or_gif_fragment"
+ 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_view_reddit_gallery_image_or_gif_fragment"
+ 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_view_reddit_gallery_image_or_gif_fragment"
+ 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" />
+
+ <ImageView
+ android:id="@+id/share_image_view_view_reddit_gallery_image_or_gif_fragment"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="16dp"
+ android:src="@drawable/ic_share_toolbar_white_24dp"
+ android:background="?attr/selectableItemBackgroundBorderless" />
+
+ <ImageView
+ android:id="@+id/wallpaper_image_view_view_reddit_gallery_image_or_gif_fragment"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="16dp"
+ android:padding="16dp"
+ android:src="@drawable/ic_wallpaper_white_24dp"
+ android:background="?attr/selectableItemBackgroundBorderless" />
+
+ </LinearLayout>
+
+ </com.google.android.material.bottomappbar.BottomAppBar>
+
+</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file