summaryrefslogtreecommitdiffstats
path: root/res/layout-sw720dp/search_bar.xml
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2012-08-02 17:40:30 -0700
committerWinson Chung <winsonc@google.com>2012-08-08 14:02:22 -0700
commit0e721a4005b4d119cf641ca0dd0d8744672646f0 (patch)
tree78aca8d15bf6450d982cb3be1cfff471985938f5 /res/layout-sw720dp/search_bar.xml
parent1637d6d64ac85d75b69b90fd976ed449046ccdc6 (diff)
downloadandroid_packages_apps_Trebuchet-0e721a4005b4d119cf641ca0dd0d8744672646f0.tar.gz
android_packages_apps_Trebuchet-0e721a4005b4d119cf641ca0dd0d8744672646f0.tar.bz2
android_packages_apps_Trebuchet-0e721a4005b4d119cf641ca0dd0d8744672646f0.zip
Initial changes for new 10inch layout.
Change-Id: Ifaafca469df626a76ab5e16bd2f0d5afa1da172c
Diffstat (limited to 'res/layout-sw720dp/search_bar.xml')
-rw-r--r--res/layout-sw720dp/search_bar.xml79
1 files changed, 38 insertions, 41 deletions
diff --git a/res/layout-sw720dp/search_bar.xml b/res/layout-sw720dp/search_bar.xml
index 55ec959de..8f58fe61f 100644
--- a/res/layout-sw720dp/search_bar.xml
+++ b/res/layout-sw720dp/search_bar.xml
@@ -15,60 +15,57 @@
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
style="@style/SearchDropTargetBar"
android:layout_width="match_parent"
- android:layout_height="match_parent">
+ android:layout_height="@dimen/search_bar_height"
+ android:layout_gravity="bottom|center_horizontal"
+ android:background="@drawable/search_frame">
<!-- Global search icon -->
- <com.android.launcher2.HolographicImageView
+ <com.android.launcher2.HolographicLinearLayout
style="@style/SearchButton"
- android:id="@+id/search_button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ launcher:sourceImageViewId="@+id/search_button"
+ android:id="@+id/search_button_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="center_vertical"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
- android:src="@drawable/ic_home_search_normal_holo"
+ android:layout_toLeftOf="@+id/voice_button_container"
+ android:paddingLeft="8dp"
android:onClick="onClickSearchButton"
android:focusable="true"
android:clickable="true"
- android:contentDescription="@string/accessibility_search_button" />
-
- <ImageView
- style="@style/SearchButtonDivider"
- android:id="@+id/search_divider"
- android:layout_toRightOf="@+id/search_button"
- android:src="@drawable/divider_launcher_holo"
- android:onClick="onClickSearchButton"
- android:focusable="false"
- android:clickable="true" />
+ android:contentDescription="@string/accessibility_search_button">
+ <ImageView
+ android:id="@+id/search_button"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:src="@drawable/ic_home_search_normal_holo"
+ android:adjustViewBounds="true" />
+ </com.android.launcher2.HolographicLinearLayout>
<!-- Voice search icon -->
- <com.android.launcher2.HolographicImageView
- style="@style/SearchButton.Voice"
- android:id="@+id/voice_button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_toRightOf="@+id/search_divider"
- android:src="@drawable/ic_home_voice_search_holo"
- android:onClick="onClickVoiceButton"
- android:focusable="true"
- android:clickable="true"
- android:contentDescription="@string/accessibility_voice_search_button" />
-
- <!-- AppsCustomize icon -->
- <com.android.launcher2.HolographicImageView
- android:id="@+id/all_apps_button"
- android:onClick="onClickAllAppsButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ <com.android.launcher2.HolographicLinearLayout
+ style="@style/SearchButton"
+ launcher:sourceImageViewId="@+id/voice_button"
+ android:id="@+id/voice_button_container"
+ android:layout_width="@dimen/search_bar_height"
+ android:layout_height="match_parent"
+ android:layout_gravity="center_vertical"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
- android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
- android:paddingRight="@dimen/toolbar_button_horizontal_padding"
- android:paddingTop="@dimen/all_apps_button_vertical_padding"
- android:paddingBottom="@dimen/all_apps_button_vertical_padding"
- android:src="@drawable/ic_home_all_apps_holo_dark"
-
+ android:paddingRight="8dp"
+ android:gravity="right"
+ android:onClick="onClickVoiceButton"
android:focusable="true"
android:clickable="true"
- android:contentDescription="@string/accessibility_all_apps_button" />
+ android:contentDescription="@string/accessibility_voice_search_button">
+ <ImageView
+ android:id="@+id/voice_button"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:src="@drawable/ic_home_voice_search_holo"
+ android:adjustViewBounds="true" />
+ </com.android.launcher2.HolographicLinearLayout>
</RelativeLayout>