aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2022-01-16 07:19:55 +0000
committerAlex Ning <chineseperson5@gmail.com>2022-01-16 07:19:55 +0000
commit85a51d7dc8e0d36563f7a3e1f5ec40a68967c835 (patch)
tree582080307f2adceb086ac42f9fdfae10d3ea5c8d /app/src/main/res
parent44ed414f28d6254ed85195761cf6d45e88bd31da (diff)
downloadinfinity-for-reddit-85a51d7dc8e0d36563f7a3e1f5ec40a68967c835.tar
infinity-for-reddit-85a51d7dc8e0d36563f7a3e1f5ec40a68967c835.tar.gz
infinity-for-reddit-85a51d7dc8e0d36563f7a3e1f5ec40a68967c835.tar.bz2
infinity-for-reddit-85a51d7dc8e0d36563f7a3e1f5ec40a68967c835.tar.lz
infinity-for-reddit-85a51d7dc8e0d36563f7a3e1f5ec40a68967c835.tar.xz
infinity-for-reddit-85a51d7dc8e0d36563f7a3e1f5ec40a68967c835.tar.zst
infinity-for-reddit-85a51d7dc8e0d36563f7a3e1f5ec40a68967c835.zip
New option: Fixed height preview in card.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/drawable/ic_play_circle_24dp.xml5
-rw-r--r--app/src/main/res/layout/item_post_compact.xml1
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/xml/post_preferences.xml5
4 files changed, 12 insertions, 0 deletions
diff --git a/app/src/main/res/drawable/ic_play_circle_24dp.xml b/app/src/main/res/drawable/ic_play_circle_24dp.xml
new file mode 100644
index 00000000..3b89d612
--- /dev/null
+++ b/app/src/main/res/drawable/ic_play_circle_24dp.xml
@@ -0,0 +1,5 @@
+<vector android:height="24dp" android:tint="#FFFFFF"
+ android:viewportHeight="24" android:viewportWidth="24"
+ android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillColor="@android:color/white" android:pathData="M10,16.5l6,-4.5 -6,-4.5zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8z"/>
+</vector>
diff --git a/app/src/main/res/layout/item_post_compact.xml b/app/src/main/res/layout/item_post_compact.xml
index 5bab3835..83335fbd 100644
--- a/app/src/main/res/layout/item_post_compact.xml
+++ b/app/src/main/res/layout/item_post_compact.xml
@@ -233,6 +233,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="0dp"
+ android:padding="4dp"
android:background="@drawable/play_button_round_background"
android:visibility="gone" />
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 9a04f2e2..733343bf 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -624,6 +624,7 @@
<string name="settings_custom_font_family_title">Custom Font Family</string>
<string name="settings_custom_title_font_family_title">Custom Title Font Family</string>
<string name="settings_custom_content_font_family_title">Custom Content Font Family</string>
+ <string name="settings_fixed_height_preview_in_card_title">Fixed Height in Card</string>
<string name="no_link_available">Cannot get the link</string>
diff --git a/app/src/main/res/xml/post_preferences.xml b/app/src/main/res/xml/post_preferences.xml
index 7b3059e6..3bc09d0f 100644
--- a/app/src/main/res/xml/post_preferences.xml
+++ b/app/src/main/res/xml/post_preferences.xml
@@ -52,6 +52,11 @@
app:key="hide_the_number_of_comments"
app:title="@string/settings_hide_the_number_of_comments" />
+ <ml.docilealligator.infinityforreddit.customviews.CustomFontSwitchPreference
+ app:defaultValue="false"
+ app:key="fixed_height_preview_in_card"
+ app:title="@string/settings_fixed_height_preview_in_card_title" />
+
<ml.docilealligator.infinityforreddit.customviews.CustomFontPreferenceCategory
app:title="@string/post_layout_compact" />