diff options
author | John Reck <jreck@google.com> | 2011-04-20 15:31:13 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-04-21 18:01:44 -0700 |
commit | 40badf29facf6b5ca894a092062cc27897d2b434 (patch) | |
tree | 083699669acc539e30aa2e8b0ccd447eb1b5ddd9 /res | |
parent | fedb492d1ac1068e17028b6d4083d1a6b0578287 (diff) | |
download | packages_apps_Browser-40badf29facf6b5ca894a092062cc27897d2b434.zip packages_apps_Browser-40badf29facf6b5ca894a092062cc27897d2b434.tar.gz packages_apps_Browser-40badf29facf6b5ca894a092062cc27897d2b434.tar.bz2 |
Add minimum font size support
Change-Id: I2dc092f7484ff63ce90f15c2c46c7029c84265e8
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/min_font_size.xml | 38 | ||||
-rw-r--r-- | res/layout/webview_preview.xml | 38 | ||||
-rw-r--r-- | res/values/strings.xml | 6 | ||||
-rw-r--r-- | res/values/styles.xml | 2 | ||||
-rw-r--r-- | res/xml/accessibility_preferences.xml | 35 | ||||
-rw-r--r-- | res/xml/advanced_preferences.xml | 7 | ||||
-rw-r--r-- | res/xml/preference_headers.xml | 4 |
7 files changed, 122 insertions, 8 deletions
diff --git a/res/layout/min_font_size.xml b/res/layout/min_font_size.xml new file mode 100644 index 0000000..d4d1314 --- /dev/null +++ b/res/layout/min_font_size.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + 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> + diff --git a/res/layout/webview_preview.xml b/res/layout/webview_preview.xml new file mode 100644 index 0000000..6edbcce --- /dev/null +++ b/res/layout/webview_preview.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingRight="6dip" + android:paddingTop="6dip" + android:paddingBottom="6dip" + android:paddingLeft="8dip"> + + <TextView + android:text="@string/preview" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <WebView + android:id="@+id/webview" + android:layout_width="match_parent" + android:layout_height="180dp" /> + +</LinearLayout> + diff --git a/res/values/strings.xml b/res/values/strings.xml index 7b916f4..c30eea8 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -523,6 +523,8 @@ <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> <!-- Settings label --> <string name="pref_default_zoom">Default zoom</string> <!-- Settings default zoom options; appear in default zoom dialog box --> @@ -625,6 +627,8 @@ <item>EUC-KR</item> </string-array> <string name="pref_default_text_encoding_default" translatable="false">Latin-1</string> + <!-- Title for accessibility settings [CHAR LIMIT=25] --> + <string name="pref_accessibility_title">Accessibility</string> <!-- Title for lab settings [CHAR LIMIT=25] --> <string name="pref_lab_title">Labs</string> <!-- Title for lab quick controls feature [CHAR LIMIT=40] --> @@ -983,4 +987,6 @@ <string name="recover_yes">Yes</string> <!-- No, don't recover windows from last time [CHAR LIMIT=10] --> <string name="recover_no">No</string> + <!-- Font size preview label [CHAR LIMIT=30] --> + <string name="preview">Preview:</string> </resources> diff --git a/res/values/styles.xml b/res/values/styles.xml index 100a1d1..1b77509 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -69,7 +69,7 @@ <item name="android:windowEnterAnimation">@anim/title_bar_enter</item> <item name="android:windowExitAnimation">@anim/title_bar_exit</item> </style> - <style name="HoloIcon"> + <style name="HoloIcon"> <item name="android:layout_marginLeft">16dip</item> </style> <style name="HoloButton"> diff --git a/res/xml/accessibility_preferences.xml b/res/xml/accessibility_preferences.xml new file mode 100644 index 0000000..368d909 --- /dev/null +++ b/res/xml/accessibility_preferences.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<PreferenceScreen + xmlns:android="http://schemas.android.com/apk/res/android"> + + <com.android.browser.preferences.WebViewPreview /> + + <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.MinFontSizePreference + android:key="min_font_size" + android:title="@string/pref_min_font_size" + android:defaultValue="1" /> + +</PreferenceScreen> diff --git a/res/xml/advanced_preferences.xml b/res/xml/advanced_preferences.xml index 3264d22..4a2823e 100644 --- a/res/xml/advanced_preferences.xml +++ b/res/xml/advanced_preferences.xml @@ -50,13 +50,6 @@ android:summary="@string/pref_extras_website_settings_summary" /> <PreferenceCategory android:title="@string/pref_content_title"> - <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" /> <ListPreference android:key="default_zoom" diff --git a/res/xml/preference_headers.xml b/res/xml/preference_headers.xml index cdf259c..e58b90a 100644 --- a/res/xml/preference_headers.xml +++ b/res/xml/preference_headers.xml @@ -24,6 +24,10 @@ android:title="@string/pref_privacy_security_title" /> + <header android:fragment="com.android.browser.preferences.AccessibilityPreferencesFragment" + android:title="@string/pref_accessibility_title" + /> + <header android:fragment="com.android.browser.preferences.AdvancedPreferencesFragment" android:title="@string/pref_extras_title" /> |