From 4ab8f037f2b3da61a11b46f547615be3d2aab77f Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sat, 30 Oct 2021 21:20:48 +0800 Subject: Start migrating to Material Design 3. Try optimizing image loading in PostRecyclerViewAdapter. --- app/src/main/res/layout/item_post_with_preview.xml | 36 ++++++++-------------- 1 file changed, 13 insertions(+), 23 deletions(-) (limited to 'app/src/main/res/layout/item_post_with_preview.xml') 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" /> - @@ -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" /> - - - - - - - + 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" /> + +