diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-06-10 04:22:19 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-06-10 04:22:19 +0000 |
commit | 4cd07e3bb61d848590a953a37c8501962e2c0bd8 (patch) | |
tree | cf4878e6ccea7a7f58d117fef57233a5cd48c6c8 /app/src/main/res/layout/item_post_link.xml | |
parent | 9a47a3d9d20c061e38161293498622e3a6aaf8b5 (diff) | |
download | infinity-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_link.xml')
-rw-r--r-- | app/src/main/res/layout/item_post_link.xml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/app/src/main/res/layout/item_post_link.xml b/app/src/main/res/layout/item_post_link.xml index 66c55908..d6965fca 100644 --- a/app/src/main/res/layout/item_post_link.xml +++ b/app/src/main/res/layout/item_post_link.xml @@ -37,6 +37,7 @@ android:layout_marginStart="16dp" android:layout_marginEnd="8dp" android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" app:layout_constraintBottom_toTopOf="@id/user_text_view_item_post_link" app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_item_post_link" app:layout_constraintEnd_toStartOf="@id/stickied_post_image_view_item_post_link" @@ -49,6 +50,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_toBottomOf="parent" @@ -74,6 +76,7 @@ android:layout_height="wrap_content" android:gravity="end" android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/guideline2" @@ -94,7 +97,8 @@ android:layout_height="wrap_content" android:paddingStart="16dp" android:paddingEnd="16dp" - android:textSize="?attr/title_font_18" /> + android:textSize="?attr/title_font_18" + android:fontFamily="?attr/title_font_family" /> <com.nex3z.flowlayout.FlowLayout android:layout_width="match_parent" @@ -111,6 +115,7 @@ android:padding="4dp" android:text="@string/link" android:textSize="?attr/font_12" + android:fontFamily="?attr/font_family" app:lib_setRadius="3dp" app:lib_setRoundedView="true" app:lib_setShape="rectangle" /> @@ -122,6 +127,7 @@ android:layout_gravity="center" android:text="@string/spoiler" android:textSize="?attr/font_12" + android:fontFamily="?attr/font_family" android:padding="4dp" android:visibility="gone" app:lib_setRadius="3dp" @@ -135,6 +141,7 @@ android:padding="4dp" android:text="@string/nsfw" android:textSize="?attr/font_12" + android:fontFamily="?attr/font_family" android:visibility="gone" app:lib_setRadius="3dp" app:lib_setRoundedView="true" @@ -146,6 +153,7 @@ android:layout_height="wrap_content" android:layout_gravity="center" android:textSize="?attr/font_12" + android:fontFamily="?attr/font_family" android:padding="4dp" android:visibility="gone" app:lib_setRadius="3dp" @@ -158,6 +166,7 @@ android:layout_height="wrap_content" android:padding="4dp" android:textSize="?attr/font_12" + android:fontFamily="?attr/font_family" android:visibility="gone" app:lib_setRadius="3dp" app:lib_setRoundedView="true" @@ -194,6 +203,7 @@ android:paddingStart="16dp" android:paddingEnd="16dp" android:textSize="?attr/font_12" + android:fontFamily="?attr/font_family" android:visibility="gone" /> <RelativeLayout @@ -228,7 +238,8 @@ android:layout_gravity="center" android:gravity="center" android:text="@string/error_loading_image_tap_to_retry" - android:textSize="?attr/font_default" /> + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" /> </RelativeLayout> @@ -259,6 +270,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_link" /> @@ -284,6 +296,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" |