aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/item_post.xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2018-11-08 06:13:17 +0000
committerAlex Ning <chineseperson5@gmail.com>2018-11-08 06:13:17 +0000
commit4373d3aa55845160fc81940af10755e7745b11b5 (patch)
tree21e6e61486d61f4b0230b929563c2c20469af887 /app/src/main/res/layout/item_post.xml
parent6e5a0e7ef37ab148123a2fed2e50f84978e1f45a (diff)
downloadinfinity-for-reddit-4373d3aa55845160fc81940af10755e7745b11b5.tar
infinity-for-reddit-4373d3aa55845160fc81940af10755e7745b11b5.tar.gz
infinity-for-reddit-4373d3aa55845160fc81940af10755e7745b11b5.tar.bz2
infinity-for-reddit-4373d3aa55845160fc81940af10755e7745b11b5.tar.lz
infinity-for-reddit-4373d3aa55845160fc81940af10755e7745b11b5.tar.xz
infinity-for-reddit-4373d3aa55845160fc81940af10755e7745b11b5.tar.zst
infinity-for-reddit-4373d3aa55845160fc81940af10755e7745b11b5.zip
Minor layout tweaks.
Diffstat (limited to 'app/src/main/res/layout/item_post.xml')
-rw-r--r--app/src/main/res/layout/item_post.xml8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml
index cd200590..a2a99cce 100644
--- a/app/src/main/res/layout/item_post.xml
+++ b/app/src/main/res/layout/item_post.xml
@@ -151,12 +151,14 @@
android:id="@+id/image_view_best_post_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:adjustViewBounds="true"
android:scaleType="fitStart" />
- <LinearLayout
- android:id="@+id/load_image_error_linear_layout_best_post_item"
+ <RelativeLayout
+ android:id="@+id/load_image_error_relative_layout_best_post_item"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:layout_centerInParent="true"
android:visibility="gone">
<TextView
@@ -167,7 +169,7 @@
android:gravity="center"
android:text="@string/tap_to_retry" />
- </LinearLayout>
+ </RelativeLayout>
</RelativeLayout>