diff options
author | Alex Ning <chineseperson5@gmail.com> | 2018-08-30 13:18:21 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2018-08-30 13:18:21 +0000 |
commit | 6637cefc051d44802f54e741ca2492cbd36ac405 (patch) | |
tree | d0d106c5a3a386782e340be768b12dd70d7549e7 /app/src/main/res | |
parent | 4364e20e36aba6de96d25b237cac7c178a5e1980 (diff) | |
download | infinity-for-reddit-6637cefc051d44802f54e741ca2492cbd36ac405.tar infinity-for-reddit-6637cefc051d44802f54e741ca2492cbd36ac405.tar.gz infinity-for-reddit-6637cefc051d44802f54e741ca2492cbd36ac405.tar.bz2 infinity-for-reddit-6637cefc051d44802f54e741ca2492cbd36ac405.tar.lz infinity-for-reddit-6637cefc051d44802f54e741ca2492cbd36ac405.tar.xz infinity-for-reddit-6637cefc051d44802f54e741ca2492cbd36ac405.tar.zst infinity-for-reddit-6637cefc051d44802f54e741ca2492cbd36ac405.zip |
Blur the preview image if the post is NSFW. Tweak some layouts. Optimize some methods.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/activity_view_post_detail.xml | 18 | ||||
-rw-r--r-- | app/src/main/res/layout/item_post.xml | 2 |
2 files changed, 8 insertions, 12 deletions
diff --git a/app/src/main/res/layout/activity_view_post_detail.xml b/app/src/main/res/layout/activity_view_post_detail.xml index 64a648c2..4e9feffc 100644 --- a/app/src/main/res/layout/activity_view_post_detail.xml +++ b/app/src/main/res/layout/activity_view_post_detail.xml @@ -27,7 +27,7 @@ android:orientation="vertical"> <RelativeLayout - android:id="@+id/relative_view_view_post_detail" + android:id="@+id/relative_layout_view_post_detail" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp" @@ -89,17 +89,17 @@ <RelativeLayout android:layout_width="match_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:layout_marginTop="8dp" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp"> <TextView android:id="@+id/type_text_view_view_post_detail" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="16dp" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp" - android:layout_marginStart="16dp" - android:layout_marginTop="8dp" + android:layout_centerVertical="true" android:background="@drawable/rounded_corner" android:textColor="@android:color/white" /> @@ -130,11 +130,7 @@ android:layout_height="wrap_content" android:text="@string/nsfw" android:layout_alignParentEnd="true" - android:layout_marginEnd="16dp" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp" - android:layout_marginStart="16dp" - android:layout_marginTop="8dp" + android:layout_marginStart="8dp" android:background="@drawable/nsfw_rounded_corner" android:textColor="@android:color/white" android:visibility="gone" /> diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml index 871125d8..78a55cf2 100644 --- a/app/src/main/res/layout/item_post.xml +++ b/app/src/main/res/layout/item_post.xml @@ -112,7 +112,7 @@ android:layout_height="wrap_content" android:background="@drawable/nsfw_rounded_corner" android:layout_alignParentEnd="true" - android:layout_marginStart="16dp" + android:layout_marginStart="8dp" android:layout_centerVertical="true" android:textColor="@android:color/white" android:visibility="gone"/> |