summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-06-16 17:44:29 -0700
committerJohn Reck <jreck@google.com>2011-06-17 10:42:55 -0700
commit7dc444b4c3b70a09a33c0892fb8677922bdf1ecc (patch)
tree46e04952dca7ea89e54f2aa3675361f76e0a7bf3 /res
parentf43990eed0a2b97f181c44fd03271f1844a8d133 (diff)
downloadpackages_apps_Browser-7dc444b4c3b70a09a33c0892fb8677922bdf1ecc.zip
packages_apps_Browser-7dc444b4c3b70a09a33c0892fb8677922bdf1ecc.tar.gz
packages_apps_Browser-7dc444b4c3b70a09a33c0892fb8677922bdf1ecc.tar.bz2
Accessibility tweaks
Min font size now shows pt value Text size replaced with text zoom Change-Id: Ic5906be094425bc5099a17571868c7a994a6cb86
Diffstat (limited to 'res')
-rw-r--r--res/layout/font_size_widget.xml (renamed from res/layout/min_font_size.xml)28
-rw-r--r--res/values/strings.xml18
-rw-r--r--res/xml/accessibility_preferences.xml14
3 files changed, 19 insertions, 41 deletions
diff --git a/res/layout/min_font_size.xml b/res/layout/font_size_widget.xml
index d4d1314..296f5bf 100644
--- a/res/layout/min_font_size.xml
+++ b/res/layout/font_size_widget.xml
@@ -14,25 +14,13 @@
limitations under the License.
-->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/text"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingRight="6dip"
- android:paddingTop="6dip"
- android:paddingBottom="6dip"
- android:paddingLeft="8dip">
-
- <TextView
- android:text="@string/pref_min_font_size"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceMedium" />
-
- <SeekBar
- android:id="@+id/seekbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
-
-</LinearLayout>
+ android:minWidth="50sp"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="?android:attr/textColorSecondary"
+ android:layout_gravity="center_vertical"
+/>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index d2515d9..c846965 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -510,9 +510,7 @@
<string name="pref_security_accept_cookies">Accept cookies</string>
<!-- Settings summary -->
<string name="pref_security_accept_cookies_summary">Allow sites to save and read \"cookie\" data</string>
- <!-- Settings label -->
- <string name="pref_text_size">Text size</string>
- <!-- Settings text size options; appear in Text size dialog box -->
+ <!-- Settings text size options; appear in Text size dialog box [CHAR LIMIT=30] -->
<string-array name="pref_text_size_choices">
<item>Tiny</item>
<item>Small</item>
@@ -520,18 +518,12 @@
<item>Large</item>
<item>Huge</item>
</string-array>
- <!-- Title of dialog for setting the text size -->
- <string name="pref_text_size_dialogtitle">Text size</string>
- <!-- Do not translate -->
- <string-array name="pref_text_size_values" translatable="false">
- <item><xliff:g>SMALLEST</xliff:g></item>
- <item><xliff:g>SMALLER</xliff:g></item>
- <item><xliff:g>NORMAL</xliff:g></item>
- <item><xliff:g>LARGER</xliff:g></item>
- <item><xliff:g>LARGEST</xliff:g></item>
- </string-array>
<!-- Label for minimum font size [CHAR LIMIT=30] -->
<string name="pref_min_font_size">Minimum font size</string>
+ <!-- Label for the current minimum font size value [CHAR LIMIT=6] -->
+ <string name="pref_min_font_size_value"><xliff:g id="font_size">%d</xliff:g>pt</string>
+ <!-- Label for text zoom (percent) [CHAR LIMIT=30] -->
+ <string name="pref_text_zoom">Text zoom</string>
<!-- Label for whether or not to force-enable user scalablity (aka, zoom) [CHAR LIMIT=30] -->
<string name="pref_force_userscalable">Force enable zoom</string>
<!-- Summary for whether or not to force-enable user scalablity (aka, zoom) [CHAR LIMIT=30] -->
diff --git a/res/xml/accessibility_preferences.xml b/res/xml/accessibility_preferences.xml
index 6109a64..a7124f4 100644
--- a/res/xml/accessibility_preferences.xml
+++ b/res/xml/accessibility_preferences.xml
@@ -26,19 +26,17 @@
<com.android.browser.preferences.WebViewPreview
android:title="@string/preview" />
- <ListPreference
- android:key="text_size"
- android:title="@string/pref_text_size"
- android:defaultValue="NORMAL"
- android:entries="@array/pref_text_size_choices"
- android:entryValues="@array/pref_text_size_values"
- android:dialogTitle="@string/pref_text_size_dialogtitle" />
+ <com.android.browser.preferences.FontSizePreference
+ android:key="text_zoom"
+ android:title="@string/pref_text_zoom"
+ android:defaultValue="10"
+ android:max="30" />
<com.android.browser.preferences.FontSizePreference
android:key="min_font_size"
android:title="@string/pref_min_font_size"
android:defaultValue="0"
- android:max="18" />
+ android:max="20" />
</PreferenceCategory>