diff options
author | Amith Yamasani <yamasani@google.com> | 2010-11-16 09:05:07 -0800 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2010-11-17 16:46:14 -0800 |
commit | 6d7fe506fcfbc7bd6810ec8dd48c214e856aa87a (patch) | |
tree | 0d3d3027cfcbcbe03810480304ccca228aefa7fc /res | |
parent | f74a4ecf9453c84f46543ed8528916029501d13e (diff) | |
download | android_packages_apps_Trebuchet-6d7fe506fcfbc7bd6810ec8dd48c214e856aa87a.tar.gz android_packages_apps_Trebuchet-6d7fe506fcfbc7bd6810ec8dd48c214e856aa87a.tar.bz2 android_packages_apps_Trebuchet-6d7fe506fcfbc7bd6810ec8dd48c214e856aa87a.zip |
Separate QSB and Voice buttons, aligned with QSB app.
Add EditText style underscores for the icons.
Get VoiceSearch icon from the activity that handles the RecognizerIntent.ACTION_WEB_SEARCH
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-xlarge-hdpi/home_press.9.png | bin | 0 -> 2868 bytes | |||
-rw-r--r-- | res/drawable-xlarge-hdpi/ic_voice_search.png | bin | 0 -> 2070 bytes | |||
-rw-r--r-- | res/drawable-xlarge-hdpi/textfield_end.9.png | bin | 0 -> 2950 bytes | |||
-rw-r--r-- | res/drawable-xlarge-hdpi/textfield_start.9.png | bin | 0 -> 3049 bytes | |||
-rw-r--r-- | res/drawable-xlarge-mdpi/home_press.9.png | bin | 0 -> 2846 bytes | |||
-rw-r--r-- | res/drawable-xlarge-mdpi/ic_voice_search.png | bin | 0 -> 1980 bytes | |||
-rw-r--r-- | res/drawable-xlarge-mdpi/textfield_end.9.png | bin | 0 -> 2926 bytes | |||
-rw-r--r-- | res/drawable-xlarge-mdpi/textfield_start.9.png | bin | 0 -> 2958 bytes | |||
-rw-r--r-- | res/drawable-xlarge/button_bg.xml | 20 | ||||
-rw-r--r-- | res/layout-xlarge-land/launcher.xml | 56 | ||||
-rw-r--r-- | res/layout-xlarge-port/launcher.xml | 56 |
11 files changed, 114 insertions, 18 deletions
diff --git a/res/drawable-xlarge-hdpi/home_press.9.png b/res/drawable-xlarge-hdpi/home_press.9.png Binary files differnew file mode 100644 index 000000000..4beec621d --- /dev/null +++ b/res/drawable-xlarge-hdpi/home_press.9.png diff --git a/res/drawable-xlarge-hdpi/ic_voice_search.png b/res/drawable-xlarge-hdpi/ic_voice_search.png Binary files differnew file mode 100644 index 000000000..66d14aec0 --- /dev/null +++ b/res/drawable-xlarge-hdpi/ic_voice_search.png diff --git a/res/drawable-xlarge-hdpi/textfield_end.9.png b/res/drawable-xlarge-hdpi/textfield_end.9.png Binary files differnew file mode 100644 index 000000000..be1b2b684 --- /dev/null +++ b/res/drawable-xlarge-hdpi/textfield_end.9.png diff --git a/res/drawable-xlarge-hdpi/textfield_start.9.png b/res/drawable-xlarge-hdpi/textfield_start.9.png Binary files differnew file mode 100644 index 000000000..6b5ebe2d6 --- /dev/null +++ b/res/drawable-xlarge-hdpi/textfield_start.9.png diff --git a/res/drawable-xlarge-mdpi/home_press.9.png b/res/drawable-xlarge-mdpi/home_press.9.png Binary files differnew file mode 100644 index 000000000..ff841c397 --- /dev/null +++ b/res/drawable-xlarge-mdpi/home_press.9.png diff --git a/res/drawable-xlarge-mdpi/ic_voice_search.png b/res/drawable-xlarge-mdpi/ic_voice_search.png Binary files differnew file mode 100644 index 000000000..a2fe87452 --- /dev/null +++ b/res/drawable-xlarge-mdpi/ic_voice_search.png diff --git a/res/drawable-xlarge-mdpi/textfield_end.9.png b/res/drawable-xlarge-mdpi/textfield_end.9.png Binary files differnew file mode 100644 index 000000000..94706b4ef --- /dev/null +++ b/res/drawable-xlarge-mdpi/textfield_end.9.png diff --git a/res/drawable-xlarge-mdpi/textfield_start.9.png b/res/drawable-xlarge-mdpi/textfield_start.9.png Binary files differnew file mode 100644 index 000000000..8cddc3499 --- /dev/null +++ b/res/drawable-xlarge-mdpi/textfield_start.9.png diff --git a/res/drawable-xlarge/button_bg.xml b/res/drawable-xlarge/button_bg.xml new file mode 100644 index 000000000..9e6e1ff23 --- /dev/null +++ b/res/drawable-xlarge/button_bg.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 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. +--> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true" android:drawable="@drawable/home_press" /> + <item android:drawable="@android:color/transparent" /> +</selector> diff --git a/res/layout-xlarge-land/launcher.xml b/res/layout-xlarge-land/launcher.xml index 8e6f1fe4b..7516796f7 100644 --- a/res/layout-xlarge-land/launcher.xml +++ b/res/layout-xlarge-land/launcher.xml @@ -54,16 +54,54 @@ android:layout_height="?android:attr/actionBarSize" android:layout_gravity="top"> - <ImageView - android:id="@+id/search_button" + <LinearLayout android:id="@+id/search_button_cluster" android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_gravity="left" - android:layout_marginLeft="@dimen/toolbar_button_spacing" - - android:onClick="onClickSearchButton" - android:focusable="true" - android:clickable="true"/> + android:layout_height="48dp" + android:gravity="bottom" + > + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginLeft="16dp" + android:background="@drawable/textfield_start" + android:orientation="horizontal"> + <!-- Global search icon --> + <ImageView + android:id="@+id/search_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + android:paddingLeft="8dp" + android:paddingRight="8dp" + android:paddingTop="12dp" + android:src="@drawable/search_button_generic" + android:background="@drawable/button_bg" + android:onClick="onClickSearchButton" + android:focusable="true" + android:clickable="true"/> + </LinearLayout> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:background="@drawable/textfield_end" + android:orientation="horizontal"> + <!-- Voice search icon --> + <ImageView + android:id="@+id/voice_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + android:paddingLeft="8dp" + android:paddingRight="8dp" + android:paddingTop="12dp" + android:src="@drawable/ic_voice_search" + android:background="@drawable/button_bg" + android:onClick="onClickVoiceButton" + android:focusable="true" + android:clickable="true"/> + </LinearLayout> + </LinearLayout> <ImageView android:id="@+id/configure_button" diff --git a/res/layout-xlarge-port/launcher.xml b/res/layout-xlarge-port/launcher.xml index a6fff4a58..c2ca4679c 100644 --- a/res/layout-xlarge-port/launcher.xml +++ b/res/layout-xlarge-port/launcher.xml @@ -54,16 +54,54 @@ android:layout_height="?android:attr/actionBarSize" android:layout_gravity="top"> - <ImageView - android:id="@+id/search_button" + <LinearLayout android:id="@+id/search_button_cluster" android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_gravity="left" - android:layout_marginLeft="@dimen/toolbar_button_spacing" - - android:onClick="onClickSearchButton" - android:focusable="true" - android:clickable="true"/> + android:layout_height="48dp" + android:gravity="bottom" + > + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginLeft="16dp" + android:background="@drawable/textfield_start" + android:orientation="horizontal"> + <!-- Global search icon --> + <ImageView + android:id="@+id/search_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + android:paddingLeft="8dp" + android:paddingRight="8dp" + android:paddingTop="12dp" + android:src="@drawable/search_button_generic" + android:background="@drawable/button_bg" + android:onClick="onClickSearchButton" + android:focusable="true" + android:clickable="true"/> + </LinearLayout> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:background="@drawable/textfield_end" + android:orientation="horizontal"> + <!-- Voice search icon --> + <ImageView + android:id="@+id/voice_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + android:paddingLeft="8dp" + android:paddingRight="8dp" + android:paddingTop="12dp" + android:src="@drawable/ic_voice_search" + android:background="@drawable/button_bg" + android:onClick="onClickVoiceButton" + android:focusable="true" + android:clickable="true"/> + </LinearLayout> + </LinearLayout> <ImageView android:id="@+id/configure_button" |