summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJeffrey Sharkey <>2009-03-31 18:25:03 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-31 18:25:03 -0700
commit7bd74a410b138830effb66c688d1d17d0066339c (patch)
treee97f7993d18fe0f8421f2b568e4e5f6e76f7edc8 /res
parent3fca10b8cd35276879e8e7361b2b9ee72377ab94 (diff)
downloadandroid_packages_apps_Trebuchet-7bd74a410b138830effb66c688d1d17d0066339c.tar.gz
android_packages_apps_Trebuchet-7bd74a410b138830effb66c688d1d17d0066339c.tar.bz2
android_packages_apps_Trebuchet-7bd74a410b138830effb66c688d1d17d0066339c.zip
AI 143908: am: CL 143907 Make search widget drop-down wider.
Original author: jsharkey Merged from: //branches/cupcake/... Automated import of CL 143908
Diffstat (limited to 'res')
-rw-r--r--res/drawable-land/spinner_dropdown_background_down.9.pngbin0 -> 456 bytes
-rw-r--r--res/drawable-land/spinner_dropdown_background_up.9.pngbin0 -> 415 bytes
-rw-r--r--res/drawable/spinner_dropdown_background.xml22
-rw-r--r--res/drawable/spinner_dropdown_background_down.9.pngbin0 -> 446 bytes
-rw-r--r--res/drawable/spinner_dropdown_background_up.9.pngbin0 -> 421 bytes
-rw-r--r--res/layout/widget_search.xml2
-rw-r--r--res/values/dimens.xml19
7 files changed, 43 insertions, 0 deletions
diff --git a/res/drawable-land/spinner_dropdown_background_down.9.png b/res/drawable-land/spinner_dropdown_background_down.9.png
new file mode 100644
index 000000000..bb64b7817
--- /dev/null
+++ b/res/drawable-land/spinner_dropdown_background_down.9.png
Binary files differ
diff --git a/res/drawable-land/spinner_dropdown_background_up.9.png b/res/drawable-land/spinner_dropdown_background_up.9.png
new file mode 100644
index 000000000..c0e2a6653
--- /dev/null
+++ b/res/drawable-land/spinner_dropdown_background_up.9.png
Binary files differ
diff --git a/res/drawable/spinner_dropdown_background.xml b/res/drawable/spinner_dropdown_background.xml
new file mode 100644
index 000000000..9c37286a2
--- /dev/null
+++ b/res/drawable/spinner_dropdown_background.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 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_above_anchor="true"
+ android:drawable="@drawable/spinner_dropdown_background_up" />
+ <item android:drawable="@drawable/spinner_dropdown_background_down" />
+</selector>
+
diff --git a/res/drawable/spinner_dropdown_background_down.9.png b/res/drawable/spinner_dropdown_background_down.9.png
new file mode 100644
index 000000000..9cb555685
--- /dev/null
+++ b/res/drawable/spinner_dropdown_background_down.9.png
Binary files differ
diff --git a/res/drawable/spinner_dropdown_background_up.9.png b/res/drawable/spinner_dropdown_background_up.9.png
new file mode 100644
index 000000000..5c93f78ff
--- /dev/null
+++ b/res/drawable/spinner_dropdown_background_up.9.png
Binary files differ
diff --git a/res/layout/widget_search.xml b/res/layout/widget_search.xml
index f87d30f16..1db8488a9 100644
--- a/res/layout/widget_search.xml
+++ b/res/layout/widget_search.xml
@@ -42,6 +42,8 @@
android:inputType="textAutoComplete"
android:imeOptions="actionSearch"
android:lines="1"
+ android:dropDownWidth="fill_parent"
+ android:popupBackground="@drawable/spinner_dropdown_background"
/>
<ImageButton android:id="@+id/search_go_btn"
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
new file mode 100644
index 000000000..4ae66864e
--- /dev/null
+++ b/res/values/dimens.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 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.
+-->
+
+<resources>
+ <dimen name="search_widget_inset">19dip</dimen>
+</resources>