From 789744f8962642b04c4b37791154fc990a05746c Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Tue, 25 Jan 2011 18:41:55 -0800 Subject: Updating layout of search buttons Change-Id: Id18c9ba18cc5a4645a192393926054e3ffaad3d0 --- res/drawable-xlarge-hdpi/search_button_normal.png | Bin 1126 -> 0 bytes res/drawable-xlarge-hdpi/search_button_pressed.png | Bin 4507 -> 0 bytes res/drawable-xlarge-hdpi/textfield_home_end.9.png | Bin 2936 -> 0 bytes .../textfield_home_start.9.png | Bin 1207 -> 0 bytes res/drawable-xlarge-mdpi/ic_generic_search.png | Bin 0 -> 2445 bytes res/drawable-xlarge-mdpi/search_button_normal.png | Bin 1067 -> 0 bytes res/drawable-xlarge-mdpi/search_button_pressed.png | Bin 3706 -> 0 bytes res/drawable-xlarge-mdpi/textfield_home_end.9.png | Bin 2935 -> 0 bytes .../textfield_home_start.9.png | Bin 3008 -> 0 bytes res/drawable-xlarge/search_button_generic.xml | 20 ----- res/layout-xlarge-land/launcher.xml | 91 ++++++++++----------- res/layout-xlarge-port/launcher.xml | 91 ++++++++++----------- src/com/android/launcher2/Launcher.java | 12 ++- 13 files changed, 98 insertions(+), 116 deletions(-) delete mode 100644 res/drawable-xlarge-hdpi/search_button_normal.png delete mode 100644 res/drawable-xlarge-hdpi/search_button_pressed.png delete mode 100644 res/drawable-xlarge-hdpi/textfield_home_end.9.png delete mode 100644 res/drawable-xlarge-hdpi/textfield_home_start.9.png create mode 100644 res/drawable-xlarge-mdpi/ic_generic_search.png delete mode 100644 res/drawable-xlarge-mdpi/search_button_normal.png delete mode 100644 res/drawable-xlarge-mdpi/search_button_pressed.png delete mode 100644 res/drawable-xlarge-mdpi/textfield_home_end.9.png delete mode 100644 res/drawable-xlarge-mdpi/textfield_home_start.9.png delete mode 100644 res/drawable-xlarge/search_button_generic.xml diff --git a/res/drawable-xlarge-hdpi/search_button_normal.png b/res/drawable-xlarge-hdpi/search_button_normal.png deleted file mode 100644 index b1df556..0000000 Binary files a/res/drawable-xlarge-hdpi/search_button_normal.png and /dev/null differ diff --git a/res/drawable-xlarge-hdpi/search_button_pressed.png b/res/drawable-xlarge-hdpi/search_button_pressed.png deleted file mode 100644 index 1013383..0000000 Binary files a/res/drawable-xlarge-hdpi/search_button_pressed.png and /dev/null differ diff --git a/res/drawable-xlarge-hdpi/textfield_home_end.9.png b/res/drawable-xlarge-hdpi/textfield_home_end.9.png deleted file mode 100644 index 4e79920..0000000 Binary files a/res/drawable-xlarge-hdpi/textfield_home_end.9.png and /dev/null differ diff --git a/res/drawable-xlarge-hdpi/textfield_home_start.9.png b/res/drawable-xlarge-hdpi/textfield_home_start.9.png deleted file mode 100644 index a338c69..0000000 Binary files a/res/drawable-xlarge-hdpi/textfield_home_start.9.png and /dev/null differ diff --git a/res/drawable-xlarge-mdpi/ic_generic_search.png b/res/drawable-xlarge-mdpi/ic_generic_search.png new file mode 100644 index 0000000..d92071b Binary files /dev/null and b/res/drawable-xlarge-mdpi/ic_generic_search.png differ diff --git a/res/drawable-xlarge-mdpi/search_button_normal.png b/res/drawable-xlarge-mdpi/search_button_normal.png deleted file mode 100644 index b172074..0000000 Binary files a/res/drawable-xlarge-mdpi/search_button_normal.png and /dev/null differ diff --git a/res/drawable-xlarge-mdpi/search_button_pressed.png b/res/drawable-xlarge-mdpi/search_button_pressed.png deleted file mode 100644 index c2926c8..0000000 Binary files a/res/drawable-xlarge-mdpi/search_button_pressed.png and /dev/null differ diff --git a/res/drawable-xlarge-mdpi/textfield_home_end.9.png b/res/drawable-xlarge-mdpi/textfield_home_end.9.png deleted file mode 100644 index 753514f..0000000 Binary files a/res/drawable-xlarge-mdpi/textfield_home_end.9.png and /dev/null differ diff --git a/res/drawable-xlarge-mdpi/textfield_home_start.9.png b/res/drawable-xlarge-mdpi/textfield_home_start.9.png deleted file mode 100644 index 11ee7ca..0000000 Binary files a/res/drawable-xlarge-mdpi/textfield_home_start.9.png and /dev/null differ diff --git a/res/drawable-xlarge/search_button_generic.xml b/res/drawable-xlarge/search_button_generic.xml deleted file mode 100644 index 8f18e67..0000000 --- a/res/drawable-xlarge/search_button_generic.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - diff --git a/res/layout-xlarge-land/launcher.xml b/res/layout-xlarge-land/launcher.xml index 93d19dc..c76516e 100644 --- a/res/layout-xlarge-land/launcher.xml +++ b/res/layout-xlarge-land/launcher.xml @@ -54,54 +54,51 @@ android:layout_height="?android:attr/actionBarSize" android:layout_gravity="top"> - + + + - - - - - - - - - - + android:layout_height="@dimen/toolbar_divider_height" + android:layout_toRightOf="@id/search_button" + android:paddingTop="@dimen/toolbar_button_vertical_padding" + android:paddingBottom="@dimen/toolbar_button_vertical_padding" + + android:onClick="onClickAllAppsButton" + android:focusable="true" + android:clickable="true" /> + + + - + + + + + + - - - - - - - - - - + android:layout_height="wrap_content" + android:layout_toRightOf="@id/search_divider" + android:paddingLeft="@dimen/toolbar_button_horizontal_padding" + android:paddingRight="@dimen/toolbar_button_horizontal_padding" + android:paddingTop="@dimen/toolbar_button_vertical_padding" + android:paddingBottom="@dimen/toolbar_button_vertical_padding" + android:src="@drawable/ic_voice_search" + android:background="@drawable/button_bg" + android:onClick="onClickVoiceButton" + android:focusable="true" + android:clickable="true"/>