From 354619c1cc1b4668c81c5368b2256335cc9e8538 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Fri, 27 Apr 2012 17:33:44 -0700 Subject: Fix 6397736: Swipe up to search layout fixes This fixes several layout issues on phones and tablets with MultiWaveView. It adds a new background scrim to be shown behind the MultiWaveView on the navigation bar. MultiWaveView is updated to handle gravity constraints which makes layouts much more flexible across devices. Change-Id: I64068f4eaa81ef6c464247049117d53432fcacbd --- .../res/drawable-hdpi/navbar_search_bg_scrim.9.png | Bin 0 -> 21892 bytes .../res/drawable-mdpi/navbar_search_bg_scrim.9.png | Bin 0 -> 11004 bytes .../drawable-xhdpi/navbar_search_bg_scrim.9.png | Bin 0 -> 34907 bytes .../res/drawable/navbar_search_bg_scrim.png | Bin 7955 -> 0 bytes .../res/layout-land/status_bar_search_panel.xml | 7 +- .../res/layout-port/status_bar_search_panel.xml | 7 +- .../res/layout-sw600dp/status_bar_search_panel.xml | 23 ++++--- .../res/layout-sw720dp/status_bar_search_panel.xml | 74 +++++++++++++++++++++ packages/SystemUI/res/values-sw600dp/dimens.xml | 14 +++- packages/SystemUI/res/values/dimens.xml | 12 +++- 10 files changed, 116 insertions(+), 21 deletions(-) create mode 100644 packages/SystemUI/res/drawable-hdpi/navbar_search_bg_scrim.9.png create mode 100644 packages/SystemUI/res/drawable-mdpi/navbar_search_bg_scrim.9.png create mode 100644 packages/SystemUI/res/drawable-xhdpi/navbar_search_bg_scrim.9.png delete mode 100644 packages/SystemUI/res/drawable/navbar_search_bg_scrim.png create mode 100644 packages/SystemUI/res/layout-sw720dp/status_bar_search_panel.xml (limited to 'packages/SystemUI/res') diff --git a/packages/SystemUI/res/drawable-hdpi/navbar_search_bg_scrim.9.png b/packages/SystemUI/res/drawable-hdpi/navbar_search_bg_scrim.9.png new file mode 100644 index 0000000..4c163a2 Binary files /dev/null and b/packages/SystemUI/res/drawable-hdpi/navbar_search_bg_scrim.9.png differ diff --git a/packages/SystemUI/res/drawable-mdpi/navbar_search_bg_scrim.9.png b/packages/SystemUI/res/drawable-mdpi/navbar_search_bg_scrim.9.png new file mode 100644 index 0000000..21c5abd Binary files /dev/null and b/packages/SystemUI/res/drawable-mdpi/navbar_search_bg_scrim.9.png differ diff --git a/packages/SystemUI/res/drawable-xhdpi/navbar_search_bg_scrim.9.png b/packages/SystemUI/res/drawable-xhdpi/navbar_search_bg_scrim.9.png new file mode 100644 index 0000000..7874c63 Binary files /dev/null and b/packages/SystemUI/res/drawable-xhdpi/navbar_search_bg_scrim.9.png differ diff --git a/packages/SystemUI/res/drawable/navbar_search_bg_scrim.png b/packages/SystemUI/res/drawable/navbar_search_bg_scrim.png deleted file mode 100644 index d595ed2..0000000 Binary files a/packages/SystemUI/res/drawable/navbar_search_bg_scrim.png and /dev/null differ diff --git a/packages/SystemUI/res/layout-land/status_bar_search_panel.xml b/packages/SystemUI/res/layout-land/status_bar_search_panel.xml index 2adee33..5d4d989 100644 --- a/packages/SystemUI/res/layout-land/status_bar_search_panel.xml +++ b/packages/SystemUI/res/layout-land/status_bar_search_panel.xml @@ -34,17 +34,18 @@ diff --git a/packages/SystemUI/res/layout-port/status_bar_search_panel.xml b/packages/SystemUI/res/layout-port/status_bar_search_panel.xml index 463fa04..2486b75 100644 --- a/packages/SystemUI/res/layout-port/status_bar_search_panel.xml +++ b/packages/SystemUI/res/layout-port/status_bar_search_panel.xml @@ -35,16 +35,17 @@ diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_search_panel.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_search_panel.xml index 6e33e27..4b2fbc7 100644 --- a/packages/SystemUI/res/layout-sw600dp/status_bar_search_panel.xml +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_search_panel.xml @@ -29,23 +29,32 @@ + android:layout_height="wrap_content"> + android:layout_centerHorizontal="true"> + + diff --git a/packages/SystemUI/res/layout-sw720dp/status_bar_search_panel.xml b/packages/SystemUI/res/layout-sw720dp/status_bar_search_panel.xml new file mode 100644 index 0000000..b4872c7 --- /dev/null +++ b/packages/SystemUI/res/layout-sw720dp/status_bar_search_panel.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + diff --git a/packages/SystemUI/res/values-sw600dp/dimens.xml b/packages/SystemUI/res/values-sw600dp/dimens.xml index 43ae557..50a61b1 100644 --- a/packages/SystemUI/res/values-sw600dp/dimens.xml +++ b/packages/SystemUI/res/values-sw600dp/dimens.xml @@ -19,11 +19,21 @@ 446dp - - 192dp + + 192dp 0dp 0x31 + + + 182dip + + + 364dp + + + 300dip + diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index e92dbc5..276d74b 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -116,13 +116,19 @@ 60dip - 300dip + 270dp + + + 20dip + + + 230dip 34dp - - 0dp + + 0dp 0dp -- cgit v1.1