diff options
author | Karl Rosaen <> | 2009-04-23 19:00:21 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-23 19:00:21 -0700 |
commit | 138a04170d964da9cdec228e95b976875ae52481 (patch) | |
tree | 4e96d9d2806cab619764d2ff29f8431822be926e /res/layout | |
parent | eeb46723716c41ba6c6660001ffac4c53cc11cb1 (diff) | |
download | packages_apps_trebuchet-138a04170d964da9cdec228e95b976875ae52481.zip packages_apps_trebuchet-138a04170d964da9cdec228e95b976875ae52481.tar.gz packages_apps_trebuchet-138a04170d964da9cdec228e95b976875ae52481.tar.bz2 |
AI 147564: Merge back from search branch to donut. Notes:
- all public apis and framework changes have been reviewed by relevant folks in our branch (e.g romainguy)
- all new public apis are @hidden; they will still get reviewed by api council once we're in git
- other than that, it's mostly GlobalSearch and search dialog stuff, a new apps provider, and some tweaks
to the contacts provider that was reviewed by jham
Automated import of CL 147564
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/widget_search.xml | 79 |
1 files changed, 37 insertions, 42 deletions
diff --git a/res/layout/widget_search.xml b/res/layout/widget_search.xml index 1db8488..841b155 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> |