diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-11-11 16:24:35 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-11-11 16:24:35 +0000 |
commit | 74ae9a8b683fd1550a01ac6c2e3f1241c80464e9 (patch) | |
tree | 4da46f6652a64f6b81e59895476445e910d4e116 /app/src/main/res | |
parent | d7928436fea370395f389563f7c89e67e6853819 (diff) | |
download | infinity-for-reddit-74ae9a8b683fd1550a01ac6c2e3f1241c80464e9.tar infinity-for-reddit-74ae9a8b683fd1550a01ac6c2e3f1241c80464e9.tar.gz infinity-for-reddit-74ae9a8b683fd1550a01ac6c2e3f1241c80464e9.tar.bz2 infinity-for-reddit-74ae9a8b683fd1550a01ac6c2e3f1241c80464e9.tar.lz infinity-for-reddit-74ae9a8b683fd1550a01ac6c2e3f1241c80464e9.tar.xz infinity-for-reddit-74ae9a8b683fd1550a01ac6c2e3f1241c80464e9.tar.zst infinity-for-reddit-74ae9a8b683fd1550a01ac6c2e3f1241c80464e9.zip |
Set post layout for subreddit and user posts individually.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/item_post_compact.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/values/attr.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 4 |
3 files changed, 9 insertions, 4 deletions
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 @@ <declare-styleable name="FontStyle"> <attr name="font_default" format="dimension"/> + <attr name="font_10" format="dimension" /> <attr name="font_12" format="dimension"/> <attr name="font_16" format="dimension"/> <attr name="font_18" format="dimension"/> 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 @@ <style name="FontStyle.Small"> <item name="font_default">12sp</item> + <item name="font_10">10sp</item> <item name="font_12">12sp</item> <item name="font_16">14sp</item> <item name="font_18">16sp</item> @@ -103,6 +104,7 @@ <style name="FontStyle.Normal"> <item name="font_default">14sp</item> + <item name="font_10">10sp</item> <item name="font_12">12sp</item> <item name="font_16">16sp</item> <item name="font_18">18sp</item> @@ -111,6 +113,7 @@ <style name="FontStyle.Large"> <item name="font_default">16sp</item> + <item name="font_10">12sp</item> <item name="font_12">14sp</item> <item name="font_16">18sp</item> <item name="font_18">20sp</item> @@ -119,6 +122,7 @@ <style name="FontStyle.XLarge"> <item name="font_default">18sp</item> + <item name="font_10">14sp</item> <item name="font_12">16sp</item> <item name="font_16">20sp</item> <item name="font_18">22sp</item> |