aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/item_post_detail_text.xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-06-10 04:22:19 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-06-10 04:22:19 +0000
commit4cd07e3bb61d848590a953a37c8501962e2c0bd8 (patch)
treecf4878e6ccea7a7f58d117fef57233a5cd48c6c8 /app/src/main/res/layout/item_post_detail_text.xml
parent9a47a3d9d20c061e38161293498622e3a6aaf8b5 (diff)
downloadinfinity-for-reddit-4cd07e3bb61d848590a953a37c8501962e2c0bd8.tar
infinity-for-reddit-4cd07e3bb61d848590a953a37c8501962e2c0bd8.tar.gz
infinity-for-reddit-4cd07e3bb61d848590a953a37c8501962e2c0bd8.tar.bz2
infinity-for-reddit-4cd07e3bb61d848590a953a37c8501962e2c0bd8.tar.lz
infinity-for-reddit-4cd07e3bb61d848590a953a37c8501962e2c0bd8.tar.xz
infinity-for-reddit-4cd07e3bb61d848590a953a37c8501962e2c0bd8.tar.zst
infinity-for-reddit-4cd07e3bb61d848590a953a37c8501962e2c0bd8.zip
Prepare to add different font support.
Diffstat (limited to 'app/src/main/res/layout/item_post_detail_text.xml')
-rw-r--r--app/src/main/res/layout/item_post_detail_text.xml15
1 files changed, 13 insertions, 2 deletions
diff --git a/app/src/main/res/layout/item_post_detail_text.xml b/app/src/main/res/layout/item_post_detail_text.xml
index 00b81547..c7d02b7f 100644
--- a/app/src/main/res/layout/item_post_detail_text.xml
+++ b/app/src/main/res/layout/item_post_detail_text.xml
@@ -27,6 +27,7 @@
android:layout_marginStart="16dp"
android:layout_marginEnd="8dp"
android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family"
android:maxLines="2"
android:ellipsize="end"
app:layout_constraintStart_toEndOf="@+id/icon_gif_image_view_item_post_detail_text"
@@ -41,6 +42,7 @@
android:layout_marginStart="16dp"
android:layout_marginEnd="8dp"
android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family"
android:maxLines="2"
android:ellipsize="end"
app:layout_constraintBottom_toTopOf="@+id/author_flair_text_view_item_post_detail_text"
@@ -56,6 +58,7 @@
android:layout_marginStart="16dp"
android:layout_marginEnd="8dp"
android:textSize="?attr/font_12"
+ android:fontFamily="?attr/font_family"
android:maxLines="2"
android:ellipsize="end"
android:visibility="gone"
@@ -71,6 +74,7 @@
android:layout_height="wrap_content"
android:gravity="end"
android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family"
app:layout_constraintHorizontal_bias="1"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/guideline"
@@ -94,6 +98,7 @@
android:paddingEnd="16dp"
android:textColor="?attr/primaryTextColor"
android:textSize="?attr/title_font_18"
+ android:fontFamily="?attr/title_font_family"
android:textIsSelectable="true"
android:enabled="true"
android:focusable="true"
@@ -124,6 +129,7 @@
android:text="@string/text"
android:textSize="?attr/font_12"
android:textColor="@android:color/white"
+ android:fontFamily="?attr/font_family"
app:lib_setRadius="3dp"
app:lib_setRoundedView="true"
app:lib_setShape="rectangle" />
@@ -136,6 +142,7 @@
android:text="@string/spoiler"
android:textSize="?attr/font_12"
android:textColor="@android:color/white"
+ android:fontFamily="?attr/font_family"
android:padding="4dp"
android:visibility="gone"
app:lib_setRadius="3dp"
@@ -149,7 +156,7 @@
android:padding="4dp"
android:text="@string/nsfw"
android:textSize="?attr/font_12"
- android:textColor="@android:color/white"
+ android:fontFamily="?attr/font_family"
android:visibility="gone"
app:lib_setRadius="3dp"
app:lib_setRoundedView="true"
@@ -162,7 +169,7 @@
android:layout_gravity="center"
android:padding="4dp"
android:textSize="?attr/font_12"
- android:textColor="@android:color/white"
+ android:fontFamily="?attr/font_family"
android:visibility="gone"
app:lib_setRadius="3dp"
app:lib_setRoundedView="true"
@@ -193,6 +200,8 @@
android:id="@+id/awards_text_view_item_post_detail_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:textSize="?attr/font_12"
+ android:fontFamily="?attr/font_family"
android:visibility="gone" />
</com.nex3z.flowlayout.FlowLayout>
@@ -223,6 +232,7 @@
android:gravity="center"
android:textSize="?attr/font_12"
android:textStyle="bold"
+ android:fontFamily="?attr/font_family"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/plus_button_item_post_detail_text" />
@@ -249,6 +259,7 @@
android:gravity="center_vertical"
android:textSize="?attr/font_12"
android:textStyle="bold"
+ android:fontFamily="?attr/font_family"
android:drawableStart="@drawable/ic_comment_grey_24dp"
android:drawablePadding="12dp"
app:layout_constraintTop_toTopOf="parent"