summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:44:05 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:44:05 -0800
commit15a8880cb1b9010ce4503c10c1666568d49415b1 (patch)
tree29fa05cbaa19101da95b010de82290cebfb6d092 /res/layout
parentbb96f41aa99687260370cf8cdee7683653e538a7 (diff)
downloadandroid_packages_apps_Trebuchet-15a8880cb1b9010ce4503c10c1666568d49415b1.tar.gz
android_packages_apps_Trebuchet-15a8880cb1b9010ce4503c10c1666568d49415b1.tar.bz2
android_packages_apps_Trebuchet-15a8880cb1b9010ce4503c10c1666568d49415b1.zip
auto import from //branches/cupcake/...@130745
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/add_list_item.xml25
-rw-r--r--res/layout/create_shortcut_list.xml5
-rw-r--r--res/layout/gadget_error.xml29
-rw-r--r--res/layout/widget_search.xml8
4 files changed, 63 insertions, 4 deletions
diff --git a/res/layout/add_list_item.xml b/res/layout/add_list_item.xml
new file mode 100644
index 000000000..f27651141
--- /dev/null
+++ b/res/layout/add_list_item.xml
@@ -0,0 +1,25 @@
+<?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.
+-->
+
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="?android:attr/listPreferredItemHeight"
+ android:textAppearance="?android:attr/textAppearanceLargeInverse"
+ android:gravity="center_vertical"
+ android:drawablePadding="14dip"
+ android:paddingLeft="15dip"
+ android:paddingRight="15dip" />
diff --git a/res/layout/create_shortcut_list.xml b/res/layout/create_shortcut_list.xml
index 63ca2b879..aa1673375 100644
--- a/res/layout/create_shortcut_list.xml
+++ b/res/layout/create_shortcut_list.xml
@@ -17,11 +17,10 @@
** limitations under the License.
*/
-->
-<ExpandableListView xmlns:android="http://schemas.android.com/apk/res/android"
+<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- android:layout_marginTop="5px"
+ android:layout_marginTop="5dip"
android:cacheColorHint="@null"
- android:childDivider="@android:drawable/divider_horizontal_bright"
android:divider="@android:drawable/divider_horizontal_bright"
android:scrollbars="vertical" />
diff --git a/res/layout/gadget_error.xml b/res/layout/gadget_error.xml
new file mode 100644
index 000000000..bde07afd0
--- /dev/null
+++ b/res/layout/gadget_error.xml
@@ -0,0 +1,29 @@
+<?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.
+-->
+
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingTop="10dip"
+ android:paddingBottom="10dip"
+ android:paddingLeft="20dip"
+ android:paddingRight="20dip"
+ android:gravity="center"
+ android:background="@drawable/bg_gadget_error"
+ android:textAppearance="?android:attr/textAppearanceMediumInverse"
+ android:textColor="@color/gadget_error_color"
+ android:text="@string/gadget_error_text"
+ />
diff --git a/res/layout/widget_search.xml b/res/layout/widget_search.xml
index 27e591db9..dcc83a5bb 100644
--- a/res/layout/widget_search.xml
+++ b/res/layout/widget_search.xml
@@ -36,7 +36,7 @@
android:singleLine="true"
android:selectAllOnFocus="true"
android:completionThreshold="1"
- android:inputType="textAutoComplete|textSearchString"
+ android:inputType="textAutoComplete|textSearch"
/>
<ImageButton android:id="@+id/search_go_btn"
@@ -46,4 +46,10 @@
android:src="@*android:drawable/ic_btn_search"
/>
+ <ImageButton android:id="@+id/search_voice_btn"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:src="@android:drawable/ic_btn_speak_now"
+ />
+
</com.android.launcher.Search>