diff options
author | Jason Monk <jmonk@google.com> | 2014-05-02 14:08:11 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-02 14:08:11 +0000 |
commit | 68b5c9d1eeae097473b2e5fef9619c3ba63414f0 (patch) | |
tree | 30ad44ef4e15f06f909df7d8db8142bcaed181a1 /packages/SystemUI/res | |
parent | 5e7ec186f0234faeee6ab40ee10b4f10ea20c105 (diff) | |
parent | 434bdf50b30caaeee26e13525ac83df85e09e326 (diff) | |
download | frameworks_base-68b5c9d1eeae097473b2e5fef9619c3ba63414f0.zip frameworks_base-68b5c9d1eeae097473b2e5fef9619c3ba63414f0.tar.gz frameworks_base-68b5c9d1eeae097473b2e5fef9619c3ba63414f0.tar.bz2 |
am 0d4a7358: Merge "Add IME Switcher icon to Navigation Bar"
* commit '0d4a73588b47b96d6a8911c0199b70dda9adc29c':
Add IME Switcher icon to Navigation Bar
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r-- | packages/SystemUI/res/drawable-hdpi/ic_ime_switcher_default.png | bin | 0 -> 755 bytes | |||
-rw-r--r-- | packages/SystemUI/res/drawable-mdpi/ic_ime_switcher_default.png | bin | 0 -> 642 bytes | |||
-rw-r--r-- | packages/SystemUI/res/drawable-xhdpi/ic_ime_switcher_default.png | bin | 0 -> 1012 bytes | |||
-rw-r--r-- | packages/SystemUI/res/drawable-xxhdpi/ic_ime_switcher_default.png | bin | 0 -> 1183 bytes | |||
-rw-r--r-- | packages/SystemUI/res/layout-ldrtl/navigation_bar.xml | 66 | ||||
-rw-r--r-- | packages/SystemUI/res/layout-sw600dp/navigation_bar.xml | 70 | ||||
-rw-r--r-- | packages/SystemUI/res/layout/navigation_bar.xml | 68 | ||||
-rw-r--r-- | packages/SystemUI/res/values-sw600dp/dimens.xml | 3 | ||||
-rw-r--r-- | packages/SystemUI/res/values/dimens.xml | 4 |
9 files changed, 150 insertions, 61 deletions
diff --git a/packages/SystemUI/res/drawable-hdpi/ic_ime_switcher_default.png b/packages/SystemUI/res/drawable-hdpi/ic_ime_switcher_default.png Binary files differnew file mode 100644 index 0000000..369c88d --- /dev/null +++ b/packages/SystemUI/res/drawable-hdpi/ic_ime_switcher_default.png diff --git a/packages/SystemUI/res/drawable-mdpi/ic_ime_switcher_default.png b/packages/SystemUI/res/drawable-mdpi/ic_ime_switcher_default.png Binary files differnew file mode 100644 index 0000000..7d97eb5 --- /dev/null +++ b/packages/SystemUI/res/drawable-mdpi/ic_ime_switcher_default.png diff --git a/packages/SystemUI/res/drawable-xhdpi/ic_ime_switcher_default.png b/packages/SystemUI/res/drawable-xhdpi/ic_ime_switcher_default.png Binary files differnew file mode 100644 index 0000000..900801a --- /dev/null +++ b/packages/SystemUI/res/drawable-xhdpi/ic_ime_switcher_default.png diff --git a/packages/SystemUI/res/drawable-xxhdpi/ic_ime_switcher_default.png b/packages/SystemUI/res/drawable-xxhdpi/ic_ime_switcher_default.png Binary files differnew file mode 100644 index 0000000..6c8222e --- /dev/null +++ b/packages/SystemUI/res/drawable-xxhdpi/ic_ime_switcher_default.png diff --git a/packages/SystemUI/res/layout-ldrtl/navigation_bar.xml b/packages/SystemUI/res/layout-ldrtl/navigation_bar.xml index aa7256b..5f12706 100644 --- a/packages/SystemUI/res/layout-ldrtl/navigation_bar.xml +++ b/packages/SystemUI/res/layout-ldrtl/navigation_bar.xml @@ -43,7 +43,7 @@ <!-- navigation controls --> <View - android:layout_width="40dp" + android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="match_parent" android:layout_weight="0" android:visibility="invisible" @@ -88,16 +88,29 @@ systemui:glowBackground="@drawable/ic_sysbar_highlight" android:contentDescription="@string/accessibility_recent" /> - <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" - android:layout_width="@dimen/navigation_menu_key_width" + <FrameLayout + android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="match_parent" - android:src="@drawable/ic_sysbar_menu" - systemui:keyCode="82" - android:layout_weight="0" - android:visibility="invisible" - android:contentDescription="@string/accessibility_menu" - systemui:glowBackground="@drawable/ic_sysbar_highlight" - /> + android:layout_weight="0" > + <com.android.systemui.statusbar.policy.KeyButtonView + android:id="@+id/menu" + android:layout_width="@dimen/navigation_extra_key_width" + android:layout_height="match_parent" + android:contentDescription="@string/accessibility_menu" + android:src="@drawable/ic_sysbar_menu" + android:visibility="invisible" + systemui:glowBackground="@drawable/ic_sysbar_highlight" + systemui:keyCode="82" /> + <com.android.systemui.statusbar.policy.KeyButtonView + android:id="@+id/ime_switcher" + android:layout_width="@dimen/navigation_extra_key_width" + android:layout_height="match_parent" + android:contentDescription="@string/accessibility_ime_switch_button" + android:scaleType="centerInside" + android:src="@drawable/ic_ime_switcher_default" + android:visibility="invisible" + systemui:glowBackground="@drawable/ic_sysbar_highlight" /> + </FrameLayout> </LinearLayout> <!-- lights out layout to match exactly --> @@ -187,16 +200,29 @@ > <!-- navigation controls --> - <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" - android:layout_height="40dp" - android:layout_width="match_parent" - android:src="@drawable/ic_sysbar_menu_land" - systemui:keyCode="82" - android:layout_weight="0" - android:visibility="invisible" - android:contentDescription="@string/accessibility_menu" - systemui:glowBackground="@drawable/ic_sysbar_highlight_land" - /> + <FrameLayout + android:layout_width="@dimen/navigation_extra_key_width" + android:layout_height="match_parent" + android:layout_weight="0" > + <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" + android:layout_height="@dimen/navigation_extra_key_width" + android:layout_width="match_parent" + android:src="@drawable/ic_sysbar_menu_land" + systemui:keyCode="82" + android:layout_weight="0" + android:visibility="invisible" + android:contentDescription="@string/accessibility_menu" + systemui:glowBackground="@drawable/ic_sysbar_highlight_land" /> + <com.android.systemui.statusbar.policy.KeyButtonView + android:id="@+id/ime_switcher" + android:layout_height="@dimen/navigation_extra_key_width" + android:layout_width="match_parent" + android:contentDescription="@string/accessibility_ime_switch_button" + android:scaleType="centerInside" + android:src="@drawable/ic_ime_switcher_default" + android:visibility="invisible" + systemui:glowBackground="@drawable/ic_sysbar_highlight" /> + </FrameLayout> <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back" android:layout_height="80dp" android:layout_width="match_parent" diff --git a/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml b/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml index b9ad799..6a2e3c6 100644 --- a/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml +++ b/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml @@ -42,7 +42,7 @@ <!-- navigation controls --> <View - android:layout_width="48dp" + android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="match_parent" android:layout_weight="0" android:layout_marginStart="2dp" @@ -85,17 +85,32 @@ android:layout_height="match_parent" android:layout_weight="1" /> - <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" - android:layout_width="48dp" + <FrameLayout + android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="match_parent" - android:src="@drawable/ic_sysbar_menu" - android:layout_marginEnd="2dp" - systemui:keyCode="82" android:layout_weight="0" - android:visibility="invisible" - android:contentDescription="@string/accessibility_menu" - systemui:glowBackground="@drawable/ic_sysbar_highlight" - /> + android:layout_marginEnd="2dp" > + <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" + android:layout_width="@dimen/navigation_extra_key_width" + android:layout_height="match_parent" + android:src="@drawable/ic_sysbar_menu" + android:layout_marginEnd="2dp" + systemui:keyCode="82" + android:visibility="invisible" + android:contentDescription="@string/accessibility_menu" + systemui:glowBackground="@drawable/ic_sysbar_highlight" + /> + <com.android.systemui.statusbar.policy.KeyButtonView + android:id="@+id/ime_switcher" + android:layout_width="@dimen/navigation_extra_key_width" + android:layout_height="match_parent" + android:layout_marginEnd="2dp" + android:scaleType="centerInside" + android:src="@drawable/ic_ime_switcher_default" + android:visibility="invisible" + android:contentDescription="@string/accessibility_ime_switch_button" + systemui:glowBackground="@drawable/ic_sysbar_highlight" /> + </FrameLayout> </LinearLayout> <!-- lights out layout to match exactly --> @@ -184,7 +199,7 @@ <!-- navigation controls --> <View - android:layout_width="48dp" + android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="match_parent" android:layout_weight="0" android:layout_marginStart="2dp" @@ -227,17 +242,32 @@ android:layout_height="match_parent" android:layout_weight="1" /> - <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" - android:layout_width="48dp" + <FrameLayout + android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="match_parent" android:layout_marginEnd="2dp" - android:src="@drawable/ic_sysbar_menu" - systemui:keyCode="82" - android:layout_weight="0" - android:visibility="invisible" - android:contentDescription="@string/accessibility_menu" - systemui:glowBackground="@drawable/ic_sysbar_highlight" - /> + android:layout_weight="0" > + <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" + android:layout_width="@dimen/navigation_extra_key_width" + android:layout_height="match_parent" + android:layout_marginEnd="2dp" + android:src="@drawable/ic_sysbar_menu" + systemui:keyCode="82" + android:visibility="invisible" + android:contentDescription="@string/accessibility_menu" + systemui:glowBackground="@drawable/ic_sysbar_highlight" + /> + <com.android.systemui.statusbar.policy.KeyButtonView + android:id="@+id/ime_switcher" + android:layout_width="@dimen/navigation_extra_key_width" + android:layout_height="match_parent" + android:layout_marginEnd="2dp" + android:src="@drawable/ic_ime_switcher_default" + android:visibility="invisible" + android:contentDescription="@string/accessibility_ime_switch_button" + android:scaleType="centerInside" + systemui:glowBackground="@drawable/ic_sysbar_highlight" /> + </FrameLayout> </LinearLayout> <!-- lights out layout to match exactly --> diff --git a/packages/SystemUI/res/layout/navigation_bar.xml b/packages/SystemUI/res/layout/navigation_bar.xml index 2398849..7470409 100644 --- a/packages/SystemUI/res/layout/navigation_bar.xml +++ b/packages/SystemUI/res/layout/navigation_bar.xml @@ -88,16 +88,31 @@ systemui:glowBackground="@drawable/ic_sysbar_highlight" android:contentDescription="@string/accessibility_recent" /> - <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" - android:layout_width="@dimen/navigation_menu_key_width" + <FrameLayout + android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="match_parent" - android:src="@drawable/ic_sysbar_menu" - systemui:keyCode="82" - android:layout_weight="0" - android:visibility="invisible" - android:contentDescription="@string/accessibility_menu" - systemui:glowBackground="@drawable/ic_sysbar_highlight" - /> + android:layout_weight="0" > + <com.android.systemui.statusbar.policy.KeyButtonView + android:id="@+id/menu" + android:layout_width="@dimen/navigation_extra_key_width" + android:layout_height="match_parent" + android:contentDescription="@string/accessibility_menu" + android:src="@drawable/ic_sysbar_menu" + android:visibility="invisible" + systemui:glowBackground="@drawable/ic_sysbar_highlight" + systemui:keyCode="82" /> + + <com.android.systemui.statusbar.policy.KeyButtonView + android:id="@+id/ime_switcher" + android:layout_width="@dimen/navigation_extra_key_width" + android:layout_height="match_parent" + android:contentDescription="@string/accessibility_ime_switch_button" + android:scaleType="centerInside" + android:src="@drawable/ic_ime_switcher_default" + android:visibility="invisible" + systemui:glowBackground="@drawable/ic_sysbar_highlight" /> + </FrameLayout> + </LinearLayout> <!-- lights out layout to match exactly --> @@ -190,18 +205,33 @@ android:id="@+id/nav_buttons" android:animateLayoutChanges="true" > - + <!-- navigation controls --> - <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" - android:layout_height="40dp" - android:layout_width="match_parent" - android:src="@drawable/ic_sysbar_menu_land" - systemui:keyCode="82" + <FrameLayout android:layout_weight="0" - android:visibility="invisible" - android:contentDescription="@string/accessibility_menu" - systemui:glowBackground="@drawable/ic_sysbar_highlight_land" - /> + android:layout_width="match_parent" + android:layout_height="40dp" > + <com.android.systemui.statusbar.policy.KeyButtonView + android:id="@+id/ime_switcher" + android:layout_width="match_parent" + android:layout_height="40dp" + android:contentDescription="@string/accessibility_ime_switch_button" + android:scaleType="centerInside" + android:src="@drawable/ic_ime_switcher_default" + android:visibility="invisible" + systemui:glowBackground="@drawable/ic_sysbar_highlight" /> + + <com.android.systemui.statusbar.policy.KeyButtonView + android:id="@+id/menu" + android:layout_width="match_parent" + android:layout_height="40dp" + android:contentDescription="@string/accessibility_menu" + android:src="@drawable/ic_sysbar_menu_land" + android:visibility="invisible" + systemui:glowBackground="@drawable/ic_sysbar_highlight_land" + systemui:keyCode="82" /> + </FrameLayout> + <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps" android:layout_height="80dp" android:layout_width="match_parent" diff --git a/packages/SystemUI/res/values-sw600dp/dimens.xml b/packages/SystemUI/res/values-sw600dp/dimens.xml index 5b5587d..92e3885 100644 --- a/packages/SystemUI/res/values-sw600dp/dimens.xml +++ b/packages/SystemUI/res/values-sw600dp/dimens.xml @@ -36,6 +36,9 @@ <!-- Height of search panel including navigation bar height --> <dimen name="navbar_search_panel_height">280dip</dimen> + <!-- The width of the view containing the menu/ime navigation bar icons --> + <dimen name="navigation_extra_key_width">48dip</dimen> + <!-- Size of application thumbnail --> <dimen name="status_bar_recents_thumbnail_width">200dp</dimen> <dimen name="status_bar_recents_thumbnail_height">177dp</dimen> diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index 9837d9b..c6298de 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -128,8 +128,8 @@ <!-- The width of the view containing non-menu status bar icons --> <dimen name="navigation_key_width">80dip</dimen> - <!-- The width of the view containing the menu status bar icon --> - <dimen name="navigation_menu_key_width">40dip</dimen> + <!-- The width of the view containing the menu/ime navigation bar icons --> + <dimen name="navigation_extra_key_width">40dip</dimen> <!-- Default distance beyond which snaps to the matching target --> <dimen name="navbar_search_snap_margin">40dip</dimen> |