diff options
author | John Reck <jreck@google.com> | 2011-06-16 14:57:41 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-06-16 15:15:09 -0700 |
commit | 8fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15 (patch) | |
tree | 8f5f7cd3fb000d4c1fd9dd557b7a8a9c05f43187 /res | |
parent | f3828cd09f12cbf2980af72187628a608db8e938 (diff) | |
download | packages_apps_Browser-8fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15.zip packages_apps_Browser-8fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15.tar.gz packages_apps_Browser-8fc22a1c7846b4c7c7b74d1ec59ffc59c2695c15.tar.bz2 |
Clean up accessibility settings
Bug: 4487879
Change-Id: I22b4e8442d20d635b9e41c214dcb20748c12f251
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/webview_preview.xml | 74 | ||||
-rw-r--r-- | res/values/strings.xml | 6 | ||||
-rw-r--r-- | res/xml/accessibility_preferences.xml | 35 |
3 files changed, 85 insertions, 30 deletions
diff --git a/res/layout/webview_preview.xml b/res/layout/webview_preview.xml index 6edbcce..8f8d810 100644 --- a/res/layout/webview_preview.xml +++ b/res/layout/webview_preview.xml @@ -17,22 +17,70 @@ <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:minHeight="?android:attr/listPreferredItemHeight" + android:gravity="center_vertical" + android:paddingRight="?android:attr/scrollbarSize"> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:gravity="center" + android:minWidth="@*android:dimen/preference_icon_minWidth" + android:orientation="horizontal"> + <ImageView + android:id="@android:id/icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:minWidth="48dp" + /> + </LinearLayout> + + <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" - android:textAppearance="?android:attr/textAppearanceMedium" /> + android:layout_marginLeft="16dip" + android:layout_marginRight="8dip" + android:layout_marginTop="6dip" + android:layout_marginBottom="6dip" + android:layout_weight="1"> + + <TextView android:id="@android:id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:ellipsize="marquee" + android:fadingEdge="horizontal" /> + + <TextView android:id="@android:id/summary" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@android:id/title" + android:layout_alignLeft="@android:id/title" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?android:attr/textColorSecondary" + android:maxLines="4" /> + + <!-- Preference should place its actual preference widget here. --> + <LinearLayout android:id="@android:id/widget_frame" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_below="@android:id/summary" + android:layout_alignLeft="@android:id/title" + android:minWidth="@dimen/preference_widget_width" + android:gravity="center" + android:orientation="vertical" /> + + <WebView + android:id="@+id/webview" + android:layout_width="match_parent" + android:layout_height="180dp" + android:layout_below="@android:id/summary" + android:layout_toRightOf="@android:id/widget_frame" + android:layout_alignParentRight="true" /> - <WebView - android:id="@+id/webview" - android:layout_width="match_parent" - android:layout_height="180dp" /> + </RelativeLayout> </LinearLayout> diff --git a/res/values/strings.xml b/res/values/strings.xml index 1e92fb5..d2515d9 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -642,6 +642,8 @@ <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> + <!-- Font size settings category under accessibility settings [CHAR LIMIT=50] --> + <string name="pref_font_size_category">Font size</string> <!-- Title for lab settings [CHAR LIMIT=25] --> <string name="pref_lab_title">Labs</string> <!-- Title for lab quick controls feature [CHAR LIMIT=40] --> @@ -1005,8 +1007,8 @@ <string name="recover_yes">Restore</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> + <!-- Font size preview label in settings [CHAR LIMIT=30] --> + <string name="preview">Preview</string> <!-- Name for the user's unsynced, local bookmarks [CHAR LIMIT=50] --> <string name="local_bookmarks">Local</string> <!-- Popup menu option that allows the user to select the mobile version of a webpage [CHAR LIMIT=50] --> diff --git a/res/xml/accessibility_preferences.xml b/res/xml/accessibility_preferences.xml index 799d0e2..6109a64 100644 --- a/res/xml/accessibility_preferences.xml +++ b/res/xml/accessibility_preferences.xml @@ -17,24 +17,29 @@ <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" /> - <CheckBoxPreference android:key="force_userscalable" android:title="@string/pref_force_userscalable" android:summary="@string/pref_force_userscalable_summary" android:defaultValue="false" /> + <PreferenceCategory android:title="@string/pref_font_size_category"> + <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="min_font_size" + android:title="@string/pref_min_font_size" + android:defaultValue="0" + android:max="18" /> + + </PreferenceCategory> + </PreferenceScreen> |