diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-04-18 14:14:17 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-04-18 14:14:17 +0000 |
commit | 2d60b732a97141ebe2a434c9c6b2ccfe5886a8da (patch) | |
tree | c3b82e47db664649bbcf488bea4a74e783d2c054 /app/src/main/res | |
parent | 2f72e654eb9b3f92fc03a5b877a4ebcacbdcdab2 (diff) | |
download | infinity-for-reddit-2d60b732a97141ebe2a434c9c6b2ccfe5886a8da.tar infinity-for-reddit-2d60b732a97141ebe2a434c9c6b2ccfe5886a8da.tar.gz infinity-for-reddit-2d60b732a97141ebe2a434c9c6b2ccfe5886a8da.tar.bz2 infinity-for-reddit-2d60b732a97141ebe2a434c9c6b2ccfe5886a8da.tar.lz infinity-for-reddit-2d60b732a97141ebe2a434c9c6b2ccfe5886a8da.tar.xz infinity-for-reddit-2d60b732a97141ebe2a434c9c6b2ccfe5886a8da.tar.zst infinity-for-reddit-2d60b732a97141ebe2a434c9c6b2ccfe5886a8da.zip |
Add awards background and text color to custom theme. Show only the number of awards on Post Compact Layout.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/item_post.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/layout/item_post_compact.xml | 17 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 4 |
3 files changed, 15 insertions, 7 deletions
diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml index 5f2b0d15..9de730bf 100644 --- a/app/src/main/res/layout/item_post.xml +++ b/app/src/main/res/layout/item_post.xml @@ -169,7 +169,6 @@ android:layout_height="wrap_content" android:padding="4dp" android:textSize="?attr/font_12" - android:textColor="#EEAB02" android:visibility="gone" app:lib_setRadius="3dp" app:lib_setRoundedView="true" diff --git a/app/src/main/res/layout/item_post_compact.xml b/app/src/main/res/layout/item_post_compact.xml index a6375133..8b65f934 100644 --- a/app/src/main/res/layout/item_post_compact.xml +++ b/app/src/main/res/layout/item_post_compact.xml @@ -157,6 +157,17 @@ app:lib_setRoundedView="true" app:lib_setShape="rectangle" /> + <com.libRG.CustomTextView + android:id="@+id/awards_text_view_item_post_compact" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="4dp" + android:textSize="?attr/font_10" + android:visibility="gone" + app:lib_setRadius="3dp" + app:lib_setRoundedView="true" + app:lib_setShape="rectangle" /> + <ImageView android:id="@+id/archived_image_view_item_post_compact" android:layout_width="24dp" @@ -178,12 +189,6 @@ android:src="@drawable/crosspost" android:visibility="gone" /> - <TextView - android:id="@+id/awards_text_view_item_post_compact" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:visibility="gone" /> - </com.nex3z.flowlayout.FlowLayout> <TextView diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 80a32a3f..2fbdb3c1 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -567,6 +567,10 @@ <string name="theme_item_flair_background_color_detail">Applied to: Background of the flair tag</string> <string name="theme_item_flair_text_color">Flair Text Color</string> <string name="theme_item_flair_text_color_detail">Applied to: Text color of the flair tag</string> + <string name="theme_item_awards_background_color">Awards Background Color</string> + <string name="theme_item_awards_background_color_detail">Applied to: Background of the awards tag</string> + <string name="theme_item_awards_text_color">Awards Text Color</string> + <string name="theme_item_awards_text_color_detail">Applied to: Text color of the awards tag</string> <string name="theme_item_archived_tint">Archived Icon Color</string> <string name="theme_item_archived_tint_detail">Applied to: Archived icon</string> <string name="theme_item_locked_icon_tint">Locked Icon Color</string> |