Add awards background and text color to custom theme. Show only the number of awards on Post Compact Layout.

This commit is contained in:
Alex Ning
2020-04-18 22:14:17 +08:00
parent 2f72e654eb
commit 2d60b732a9
9 changed files with 118 additions and 59 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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>