diff options
author | Andrew Dolgov <[email protected]> | 2013-11-24 01:56:01 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-11-24 01:56:01 +0400 |
commit | 3d23240bb0c10c0393dcf286a1d52f69bc0a24cc (patch) | |
tree | 99e252915cb93089953ef220ef0e47652164a56a /res | |
parent | 3b3b79ade20b6b5e808faa262e868a04c6dd985d (diff) |
allow more precise font size selection for headlines & article
remove single_column layout stuff
Diffstat (limited to 'res')
-rw-r--r-- | res/values/arrays.xml | 10 | ||||
-rw-r--r-- | res/xml/preferences.xml | 19 |
2 files changed, 8 insertions, 21 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 63e90184..b26a97a5 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -11,16 +11,6 @@ <item>THEME_LIGHT</item> <item>THEME_SEPIA</item> </string-array> - <string-array name="pref_font_size_names"> - <item>@string/font_size_small</item> - <item>@string/font_size_medium</item> - <item>@string/font_size_large</item> - </string-array> - <string-array name="pref_font_size_values" translatable="false"> - <item>0</item> - <item>1</item> - <item>2</item> - </string-array> <string-array name="pref_view_mode_names"> <item>@string/category_browse_headlines</item> <item>@string/category_browse_articles</item> diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index ec74841a..addf8852 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -103,21 +103,18 @@ android:summary="@string/pref_headlines_mark_read_scroll_long"
android:title="@string/pref_headlines_mark_read_scroll" />
- <ListPreference
- android:defaultValue="0"
- android:entries="@array/pref_font_size_names"
- android:entryValues="@array/pref_font_size_values"
- android:key="headlines_font_size"
+ <EditTextPreference
+ android:defaultValue="13"
+ android:key="headlines_font_size_sp"
+ android:inputType="number"
android:title="@string/pref_headline_font_size" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/reading" >
- <ListPreference
- android:defaultValue="0"
- android:entries="@array/pref_font_size_names"
- android:entryValues="@array/pref_font_size_values"
- android:key="font_size"
+ <EditTextPreference
+ android:defaultValue="16"
+ android:key="article_font_size_sp"
+ android:inputType="number"
android:title="@string/pref_font_size" />
-
<CheckBoxPreference
android:defaultValue="true"
android:key="justify_article_text"
|