aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-08-03 07:44:52 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-08-03 07:44:52 +0000
commit7987dd684a40d0817151d581c2071c7c88253ef3 (patch)
tree07c3720c30953ab81e1d3ccf3c67b99e58ba61cc /app/src
parente9944242e8dafd244d889f794db9743288b30440 (diff)
downloadinfinity-for-reddit-7987dd684a40d0817151d581c2071c7c88253ef3.tar
infinity-for-reddit-7987dd684a40d0817151d581c2071c7c88253ef3.tar.gz
infinity-for-reddit-7987dd684a40d0817151d581c2071c7c88253ef3.tar.bz2
infinity-for-reddit-7987dd684a40d0817151d581c2071c7c88253ef3.tar.lz
infinity-for-reddit-7987dd684a40d0817151d581c2071c7c88253ef3.tar.xz
infinity-for-reddit-7987dd684a40d0817151d581c2071c7c88253ef3.tar.zst
infinity-for-reddit-7987dd684a40d0817151d581c2071c7c88253ef3.zip
Minor UI tweaks.
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/res/layout/item_post_card_2_with_preview.xml6
-rw-r--r--app/src/main/res/layout/item_post_gallery.xml10
2 files changed, 9 insertions, 7 deletions
diff --git a/app/src/main/res/layout/item_post_card_2_with_preview.xml b/app/src/main/res/layout/item_post_card_2_with_preview.xml
index 8890981f..0accab55 100644
--- a/app/src/main/res/layout/item_post_card_2_with_preview.xml
+++ b/app/src/main/res/layout/item_post_card_2_with_preview.xml
@@ -46,7 +46,6 @@
android:id="@+id/load_image_error_relative_layout_item_post_card_2_with_preview"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_gravity="center"
android:visibility="gone">
<TextView
@@ -54,8 +53,9 @@
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:layout_centerInParent="true"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
android:text="@string/error_loading_image_tap_to_retry"
android:textSize="?attr/font_default"
android:fontFamily="?attr/font_family" />
diff --git a/app/src/main/res/layout/item_post_gallery.xml b/app/src/main/res/layout/item_post_gallery.xml
index 3d32cd04..19a2e418 100644
--- a/app/src/main/res/layout/item_post_gallery.xml
+++ b/app/src/main/res/layout/item_post_gallery.xml
@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ xmlns:tools="http://schemas.android.com/tools"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
app:cardElevation="2dp"
@@ -43,16 +44,17 @@
android:id="@+id/load_image_error_relative_layout_item_post_gallery"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_gravity="center"
- android:visibility="gone">
+ android:visibility="gone"
+ tools:visibility="visible">
<TextView
android:id="@+id/load_image_error_text_view_item_gallery"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
app:drawableTopCompat="@drawable/ic_error_outline_black_24dp"
- android:layout_gravity="center"
- android:gravity="center"
+ android:layout_centerInParent="true"
android:text="@string/error_loading_image_tap_to_retry"
android:textSize="?attr/font_default"
android:fontFamily="?attr/font_family" />