am ed16f582: am ef560044: Merge "SearchView textfield backgrounds for bracketing the submit/voice button and improve padding." into honeycomb-mr1
* commit 'ed16f58239f8a3f125d6ac340fae999fd1ecf633': SearchView textfield backgrounds for bracketing the submit/voice button and improve padding.
|
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 185 B After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 184 B After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 182 B After Width: | Height: | Size: 2.8 KiB |
22
core/res/res/drawable/textfield_searchview_holo_dark.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 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_focused="true"
|
||||
android:drawable="@drawable/textfield_search_selected_holo_dark" />
|
||||
<item android:drawable="@drawable/textfield_search_default_holo_dark" />
|
||||
</selector>
|
||||
|
||||
22
core/res/res/drawable/textfield_searchview_holo_light.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 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_focused="true"
|
||||
android:drawable="@drawable/textfield_search_selected_holo_light" />
|
||||
<item android:drawable="@drawable/textfield_search_default_holo_light" />
|
||||
</selector>
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 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_focused="true"
|
||||
android:drawable="@drawable/textfield_search_right_selected_holo_dark" />
|
||||
<item android:drawable="@drawable/textfield_search_right_default_holo_dark" />
|
||||
</selector>
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 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_focused="true"
|
||||
android:drawable="@drawable/textfield_search_right_selected_holo_light" />
|
||||
<item android:drawable="@drawable/textfield_search_right_default_holo_light" />
|
||||
</selector>
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:background="?android:attr/editTextBackground">
|
||||
android:background="?android:attr/searchViewTextField">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/search_app_icon"
|
||||
@@ -91,7 +91,7 @@
|
||||
android:inputType="text|textAutoComplete"
|
||||
android:imeOptions="actionSearch"
|
||||
android:dropDownHeight="wrap_content"
|
||||
android:dropDownAnchor="@id/search_plate"
|
||||
android:dropDownAnchor="@id/search_edit_frame"
|
||||
android:dropDownVerticalOffset="0dip"
|
||||
android:dropDownHorizontalOffset="0dip"
|
||||
/>
|
||||
@@ -110,38 +110,39 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/submit_area"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/search_go_btn"
|
||||
<LinearLayout
|
||||
android:id="@+id/submit_area"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:paddingLeft="16dip"
|
||||
android:paddingRight="16dip"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:src="?android:attr/searchViewGoIcon"
|
||||
android:visibility="gone"
|
||||
android:focusable="true"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/search_voice_btn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:paddingLeft="16dip"
|
||||
android:paddingRight="16dip"
|
||||
android:src="?android:attr/searchViewVoiceIcon"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:visibility="gone"
|
||||
android:focusable="true"
|
||||
/>
|
||||
android:background="?android:attr/searchViewTextFieldRight">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/search_go_btn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:paddingLeft="16dip"
|
||||
android:paddingRight="16dip"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:src="?android:attr/searchViewGoIcon"
|
||||
android:visibility="gone"
|
||||
android:focusable="true"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/search_voice_btn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:paddingLeft="16dip"
|
||||
android:paddingRight="16dip"
|
||||
android:src="?android:attr/searchViewVoiceIcon"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:visibility="gone"
|
||||
android:focusable="true"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -729,6 +729,10 @@
|
||||
<attr name="searchViewEditQuery" format="reference" />
|
||||
<!-- SearchView query refinement icon background -->
|
||||
<attr name="searchViewEditQueryBackground" format="reference" />
|
||||
<!-- SearchView text field background for the left section -->
|
||||
<attr name="searchViewTextField" format="reference" />
|
||||
<!-- SearchView text field background for the right section -->
|
||||
<attr name="searchViewTextFieldRight" format="reference" />
|
||||
|
||||
<!-- Specifies a drawable to use for the 'home as up' indicator. -->
|
||||
<attr name="homeAsUpIndicator" format="reference" />
|
||||
|
||||
@@ -285,6 +285,8 @@
|
||||
|
||||
<!-- SearchView attributes -->
|
||||
<item name="searchDropdownBackground">@android:drawable/spinner_dropdown_background</item>
|
||||
<item name="searchViewTextField">@drawable/textfield_searchview_holo_dark</item>
|
||||
<item name="searchViewTextFieldRight">@drawable/textfield_searchview_right_holo_dark</item>
|
||||
<item name="searchViewCloseIcon">@android:drawable/ic_clear</item>
|
||||
<item name="searchViewSearchIcon">@android:drawable/ic_search</item>
|
||||
<item name="searchViewGoIcon">@android:drawable/ic_go</item>
|
||||
@@ -393,6 +395,8 @@
|
||||
|
||||
<!-- SearchView attributes -->
|
||||
<item name="searchDropdownBackground">@android:drawable/search_dropdown_light</item>
|
||||
<item name="searchViewTextField">@drawable/textfield_searchview_holo_light</item>
|
||||
<item name="searchViewTextFieldRight">@drawable/textfield_searchview_right_holo_light</item>
|
||||
<item name="searchViewCloseIcon">@android:drawable/ic_clear_holo_light</item>
|
||||
<item name="searchViewSearchIcon">@android:drawable/ic_search_api_holo_light</item>
|
||||
<item name="searchViewGoIcon">@android:drawable/ic_go_search_api_holo_light</item>
|
||||
|
||||