summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorKarl Rosaen <>2009-04-29 13:43:27 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-04-29 13:43:27 -0700
commitdf3e5971c1200960243ed96bff5fca85faa634af (patch)
tree9f1bcf38beb5e4dff1351db237c00a305ad676a4 /res
parent74a15c0db0445d1df7b82ee46c65e260dd72dee8 (diff)
parent71b0594a6fc7339281add91d2ac61b181f89a2af (diff)
downloadandroid_packages_apps_Trebuchet-df3e5971c1200960243ed96bff5fca85faa634af.tar.gz
android_packages_apps_Trebuchet-df3e5971c1200960243ed96bff5fca85faa634af.tar.bz2
android_packages_apps_Trebuchet-df3e5971c1200960243ed96bff5fca85faa634af.zip
am 71b0594: Merge branch \'readonly-p4-donut\' into donut
Merge commit '71b0594a6fc7339281add91d2ac61b181f89a2af' * commit '71b0594a6fc7339281add91d2ac61b181f89a2af': AI 147564: Merge back from search branch to donut. Notes:
Diffstat (limited to 'res')
-rw-r--r--res/drawable/search_button_bg.9.pngbin0 -> 676 bytes
-rw-r--r--res/drawable/search_button_voice.pngbin0 -> 965 bytes
-rw-r--r--res/drawable/search_floater.9.pngbin0 -> 777 bytes
-rw-r--r--res/drawable/textfield_searchwidget.xml31
-rw-r--r--res/drawable/textfield_searchwidget_default.9.pngbin0 -> 1742 bytes
-rw-r--r--res/drawable/textfield_searchwidget_pressed.9.pngbin0 -> 2032 bytes
-rw-r--r--res/drawable/textfield_searchwidget_selected.9.pngbin0 -> 1886 bytes
-rw-r--r--res/layout/widget_search.xml79
-rw-r--r--res/xml/default_workspace.xml2
9 files changed, 69 insertions, 43 deletions
diff --git a/res/drawable/search_button_bg.9.png b/res/drawable/search_button_bg.9.png
new file mode 100644
index 000000000..b140b24b6
--- /dev/null
+++ b/res/drawable/search_button_bg.9.png
Binary files differ
diff --git a/res/drawable/search_button_voice.png b/res/drawable/search_button_voice.png
new file mode 100644
index 000000000..4c3d683e7
--- /dev/null
+++ b/res/drawable/search_button_voice.png
Binary files differ
diff --git a/res/drawable/search_floater.9.png b/res/drawable/search_floater.9.png
new file mode 100644
index 000000000..a2007ad92
--- /dev/null
+++ b/res/drawable/search_floater.9.png
Binary files differ
diff --git a/res/drawable/textfield_searchwidget.xml b/res/drawable/textfield_searchwidget.xml
new file mode 100644
index 000000000..80f3dca34
--- /dev/null
+++ b/res/drawable/textfield_searchwidget.xml
@@ -0,0 +1,31 @@
+<?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.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:state_window_focused="false" android:state_enabled="true"
+ android:drawable="@drawable/textfield_searchwidget_default" />
+
+ <item android:state_pressed="true"
+ android:drawable="@drawable/textfield_searchwidget_pressed" />
+
+ <item android:state_enabled="true" android:state_focused="true"
+ android:drawable="@drawable/textfield_searchwidget_selected" />
+
+ <item android:state_enabled="true"
+ android:drawable="@drawable/textfield_searchwidget_default" />
+
+</selector>
diff --git a/res/drawable/textfield_searchwidget_default.9.png b/res/drawable/textfield_searchwidget_default.9.png
new file mode 100644
index 000000000..247abca85
--- /dev/null
+++ b/res/drawable/textfield_searchwidget_default.9.png
Binary files differ
diff --git a/res/drawable/textfield_searchwidget_pressed.9.png b/res/drawable/textfield_searchwidget_pressed.9.png
new file mode 100644
index 000000000..d628cbca1
--- /dev/null
+++ b/res/drawable/textfield_searchwidget_pressed.9.png
Binary files differ
diff --git a/res/drawable/textfield_searchwidget_selected.9.png b/res/drawable/textfield_searchwidget_selected.9.png
new file mode 100644
index 000000000..9e935273e
--- /dev/null
+++ b/res/drawable/textfield_searchwidget_selected.9.png
Binary files differ
diff --git a/res/layout/widget_search.xml b/res/layout/widget_search.xml
index 1db8488a9..841b1550d 100644
--- a/res/layout/widget_search.xml
+++ b/res/layout/widget_search.xml
@@ -14,52 +14,47 @@
limitations under the License.
-->
-<com.android.launcher.Search xmlns:android="http://schemas.android.com/apk/res/android"
+<com.android.launcher.Search
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ android:id="@+id/widget_search"
android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:orientation="horizontal"
- android:background="@drawable/search_bg"
- android:gravity="center_vertical"
- >
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:gravity="top">
- <ImageView
- android:layout_width="wrap_content"
+ <LinearLayout
+ android:id="@+id/search_plate"
+ android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:paddingRight="3dip"
- android:src="@drawable/google_logo" />
-
- <com.android.launcher.SearchAutoCompleteTextView
- android:id="@+id/input"
- android:layout_width="0dip"
- android:layout_weight="1"
- android:layout_height="wrap_content"
- android:layout_marginTop="1dip"
- android:hint="@string/search_hint"
- android:focusableInTouchMode="false"
- android:singleLine="true"
- android:selectAllOnFocus="true"
- android:completionThreshold="1"
- android:inputType="textAutoComplete"
- android:imeOptions="actionSearch"
- android:lines="1"
- android:dropDownWidth="fill_parent"
- android:popupBackground="@drawable/spinner_dropdown_background"
+ android:orientation="horizontal"
+ android:paddingLeft="12dip"
+ android:paddingRight="12dip"
+ android:paddingTop="7dip"
+ android:paddingBottom="13dip"
+ android:background="@drawable/search_floater" >
+
+ <TextView
+ android:id="@+id/search_src_text"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.0"
+ android:editable="false"
+ android:inputType="text"
+ android:background="@drawable/textfield_searchwidget"
+ android:textAppearance="?android:attr/textAppearanceMediumInverse"
+ android:textColor="@android:color/primary_text_light"
/>
- <ImageButton android:id="@+id/search_go_btn"
- android:layout_marginLeft="5dip"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@*android:drawable/ic_btn_search"
- style="@style/SearchButton"
- />
-
- <ImageButton android:id="@+id/search_voice_btn"
- android:layout_marginLeft="4dip"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@android:drawable/ic_btn_speak_now"
- style="@style/SearchButton"
- />
+ <ImageButton
+ android:id="@+id/search_voice_btn"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:layout_marginLeft="8dip"
+ android:background="@*android:drawable/btn_search_dialog_voice"
+ android:src="@*android:drawable/ic_btn_speak_now"
+ />
+
+ </LinearLayout>
</com.android.launcher.Search>
diff --git a/res/xml/default_workspace.xml b/res/xml/default_workspace.xml
index 771bb2991..cc5f91158 100644
--- a/res/xml/default_workspace.xml
+++ b/res/xml/default_workspace.xml
@@ -19,7 +19,7 @@
<clock
launcher:screen="2"
launcher:x="1"
- launcher:y="0" />
+ launcher:y="1" />
<search
launcher:screen="1"