aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/item_post_with_preview.xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-10-30 13:20:48 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-10-30 13:20:48 +0000
commit4ab8f037f2b3da61a11b46f547615be3d2aab77f (patch)
treed589c980a6344ea15b6defd6484dd1108b5e37d2 /app/src/main/res/layout/item_post_with_preview.xml
parentefd5f618892a088fc9bc14530bbc1b80d0d9b561 (diff)
downloadinfinity-for-reddit-4ab8f037f2b3da61a11b46f547615be3d2aab77f.tar
infinity-for-reddit-4ab8f037f2b3da61a11b46f547615be3d2aab77f.tar.gz
infinity-for-reddit-4ab8f037f2b3da61a11b46f547615be3d2aab77f.tar.bz2
infinity-for-reddit-4ab8f037f2b3da61a11b46f547615be3d2aab77f.tar.lz
infinity-for-reddit-4ab8f037f2b3da61a11b46f547615be3d2aab77f.tar.xz
infinity-for-reddit-4ab8f037f2b3da61a11b46f547615be3d2aab77f.tar.zst
infinity-for-reddit-4ab8f037f2b3da61a11b46f547615be3d2aab77f.zip
Start migrating to Material Design 3. Try optimizing image loading in PostRecyclerViewAdapter.
Diffstat (limited to 'app/src/main/res/layout/item_post_with_preview.xml')
-rw-r--r--app/src/main/res/layout/item_post_with_preview.xml36
1 files changed, 13 insertions, 23 deletions
diff --git a/app/src/main/res/layout/item_post_with_preview.xml b/app/src/main/res/layout/item_post_with_preview.xml
index b3ef0a9b..a6ad895c 100644
--- a/app/src/main/res/layout/item_post_with_preview.xml
+++ b/app/src/main/res/layout/item_post_with_preview.xml
@@ -206,7 +206,7 @@
android:fontFamily="?attr/font_family"
android:visibility="gone" />
- <RelativeLayout
+ <FrameLayout
android:id="@+id/image_wrapper_relative_layout_item_post_with_preview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -224,7 +224,6 @@
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_margin="16dp"
- android:layout_gravity="start"
android:scaleType="center"
android:background="@drawable/play_button_round_background"
android:visibility="gone" />
@@ -233,29 +232,20 @@
android:id="@+id/progress_bar_item_post_with_preview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_centerInParent="true" />
+ android:layout_gravity="center" />
- <RelativeLayout
- android:id="@+id/load_image_error_relative_layout_item_post_with_preview"
+ <TextView
+ android:id="@+id/load_image_error_text_view_item_post_with_preview"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_centerInParent="true"
- android:visibility="gone">
-
- <TextView
- android:id="@+id/load_image_error_text_view_item_post_with_preview"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:drawableTop="@drawable/ic_error_outline_black_24dp"
- android:layout_gravity="center"
- android:gravity="center"
- android:text="@string/error_loading_image_tap_to_retry"
- android:textSize="?attr/font_default"
- android:fontFamily="?attr/font_family" />
-
- </RelativeLayout>
-
- </RelativeLayout>
+ android:layout_height="wrap_content"
+ android:drawableTop="@drawable/ic_error_outline_black_24dp"
+ android:layout_gravity="center"
+ android:gravity="center"
+ android:text="@string/error_loading_image_tap_to_retry"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family" />
+
+ </FrameLayout>
<ImageView
android:id="@+id/image_view_no_preview_gallery_item_post_with_preview"