From 74ae9a8b683fd1550a01ac6c2e3f1241c80464e9 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 12 Nov 2019 00:24:35 +0800 Subject: Set post layout for subreddit and user posts individually. --- app/src/main/res/layout/item_post_compact.xml | 8 ++++---- app/src/main/res/values/attr.xml | 1 + app/src/main/res/values/styles.xml | 4 ++++ 3 files changed, 9 insertions(+), 4 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/item_post_compact.xml b/app/src/main/res/layout/item_post_compact.xml index dc0f5876..ecef2387 100644 --- a/app/src/main/res/layout/item_post_compact.xml +++ b/app/src/main/res/layout/item_post_compact.xml @@ -113,7 +113,7 @@ android:layout_height="wrap_content" android:padding="4dp" android:textColor="@android:color/white" - android:textSize="?attr/font_12" + android:textSize="?attr/font_10" app:lib_setRadius="3dp" app:lib_setRoundedBGColor="@color/backgroundColorPrimaryDark" app:lib_setRoundedBorderColor="@color/backgroundColorPrimaryDark" @@ -128,7 +128,7 @@ android:padding="4dp" android:text="@string/spoiler" android:textColor="@android:color/white" - android:textSize="?attr/font_12" + android:textSize="?attr/font_10" android:visibility="gone" app:lib_setRadius="3dp" app:lib_setRoundedBGColor="@color/spoilerBackgroundColor" @@ -143,7 +143,7 @@ android:padding="4dp" android:text="@string/nsfw" android:textColor="@android:color/white" - android:textSize="?attr/font_12" + android:textSize="?attr/font_10" android:visibility="gone" app:lib_setRadius="3dp" app:lib_setRoundedBGColor="@color/colorAccent" @@ -158,7 +158,7 @@ android:layout_gravity="center" android:padding="4dp" android:textColor="@android:color/white" - android:textSize="?attr/font_12" + android:textSize="?attr/font_10" android:visibility="gone" app:lib_setRadius="3dp" app:lib_setRoundedBGColor="@color/flairBackgroundColor" diff --git a/app/src/main/res/values/attr.xml b/app/src/main/res/values/attr.xml index bd522e6e..37fc5341 100644 --- a/app/src/main/res/values/attr.xml +++ b/app/src/main/res/values/attr.xml @@ -4,6 +4,7 @@ + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 698057fd..57a528fd 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -95,6 +95,7 @@