diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/select_font_size_dialog.xml | 22 | ||||
-rw-r--r-- | res/values/strings.xml | 1 | ||||
-rw-r--r-- | res/xml/preferences.xml | 15 |
3 files changed, 31 insertions, 7 deletions
diff --git a/res/layout/select_font_size_dialog.xml b/res/layout/select_font_size_dialog.xml new file mode 100644 index 00000000..23a05a8b --- /dev/null +++ b/res/layout/select_font_size_dialog.xml @@ -0,0 +1,22 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/text_progress"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="6dip"
+ android:gravity="center_horizontal" >
+ </TextView>
+
+ <SeekBar
+ android:id="@+id/seek_bar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="6dip"
+ android:layout_marginTop="6dip" />
+
+</LinearLayout>
\ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index 8e2a8ac0..7cbb05c8 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -211,4 +211,5 @@ <string name="synchronize_read_articles_and_go_online">Synchronize read articles and go online</string> <string name="prefs_compatible_article_layout">Compatible article layout</string> <string name="prefs_compatible_layout_summary">Enable if you see glitches in article content</string> + <string name="font_size_dialog_suffix">sp</string> </resources> diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index addf8852..ec00986c 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -103,14 +103,15 @@ android:summary="@string/pref_headlines_mark_read_scroll_long"
android:title="@string/pref_headlines_mark_read_scroll" />
- <EditTextPreference
- android:defaultValue="13"
- android:key="headlines_font_size_sp"
- android:inputType="number"
- android:title="@string/pref_headline_font_size" />
- </PreferenceCategory>
+ <org.fox.ttrss.util.FontSizeDialogPreference
+ android:defaultValue="13"
+ android:key="headlines_font_size_sp"
+ android:dialogMessage="@string/pref_headline_font_size"
+ android:title="@string/pref_headline_font_size" />
+
+ </PreferenceCategory>
<PreferenceCategory android:title="@string/reading" >
- <EditTextPreference
+ <org.fox.ttrss.util.FontSizeDialogPreference
android:defaultValue="16"
android:key="article_font_size_sp"
android:inputType="number"
|