summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2010-08-03 13:53:20 -0700
committerMichael Jurka <mikejurka@google.com>2010-08-03 14:10:37 -0700
commit2c3af5ffb21039a73107ef70723d2353146ab94a (patch)
tree5f132a5c6fe02c0c7ea9701b7127135d1a0318f1 /res
parent2e9934ecb0287440a7d4bdd1317f6b9fb5020854 (diff)
downloadandroid_packages_apps_Trebuchet-2c3af5ffb21039a73107ef70723d2353146ab94a.tar.gz
android_packages_apps_Trebuchet-2c3af5ffb21039a73107ef70723d2353146ab94a.tar.bz2
android_packages_apps_Trebuchet-2c3af5ffb21039a73107ef70723d2353146ab94a.zip
refreshed apps/configure button, added search button
- configure button now has a pressed state (as do the other two) - also added a cast to getX() from float->int because of changes in the view property code Change-Id: I57dc6e44838f4f4354f8977a3b542e93384b3d7d
Diffstat (limited to 'res')
-rw-r--r--res/drawable-xlarge/all_apps_button.xml20
-rw-r--r--res/drawable-xlarge/all_apps_button_normal.pngbin0 -> 3713 bytes
-rw-r--r--res/drawable-xlarge/all_apps_button_pressed.pngbin0 -> 3467 bytes
-rw-r--r--res/drawable-xlarge/configure_button.xml20
-rw-r--r--res/drawable-xlarge/configure_button_normal.pngbin0 -> 4228 bytes
-rw-r--r--res/drawable-xlarge/configure_button_pressed.pngbin0 -> 3718 bytes
-rw-r--r--res/drawable-xlarge/search_button.xml20
-rw-r--r--res/drawable-xlarge/search_button_normal.pngbin0 -> 6234 bytes
-rw-r--r--res/drawable-xlarge/search_button_pressed.pngbin0 -> 5798 bytes
-rw-r--r--res/drawable/add_button.pngbin2372 -> 0 bytes
-rw-r--r--res/layout-xlarge/launcher.xml38
11 files changed, 83 insertions, 15 deletions
diff --git a/res/drawable-xlarge/all_apps_button.xml b/res/drawable-xlarge/all_apps_button.xml
new file mode 100644
index 000000000..1e654f0af
--- /dev/null
+++ b/res/drawable-xlarge/all_apps_button.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 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_pressed="true" android:drawable="@drawable/all_apps_button_pressed" />
+ <item android:drawable="@drawable/all_apps_button_normal" />
+</selector>
diff --git a/res/drawable-xlarge/all_apps_button_normal.png b/res/drawable-xlarge/all_apps_button_normal.png
new file mode 100644
index 000000000..095ce635f
--- /dev/null
+++ b/res/drawable-xlarge/all_apps_button_normal.png
Binary files differ
diff --git a/res/drawable-xlarge/all_apps_button_pressed.png b/res/drawable-xlarge/all_apps_button_pressed.png
new file mode 100644
index 000000000..50e47354a
--- /dev/null
+++ b/res/drawable-xlarge/all_apps_button_pressed.png
Binary files differ
diff --git a/res/drawable-xlarge/configure_button.xml b/res/drawable-xlarge/configure_button.xml
new file mode 100644
index 000000000..b29265291
--- /dev/null
+++ b/res/drawable-xlarge/configure_button.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 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_pressed="true" android:drawable="@drawable/configure_button_pressed" />
+ <item android:drawable="@drawable/configure_button_normal" />
+</selector>
diff --git a/res/drawable-xlarge/configure_button_normal.png b/res/drawable-xlarge/configure_button_normal.png
new file mode 100644
index 000000000..066f492bd
--- /dev/null
+++ b/res/drawable-xlarge/configure_button_normal.png
Binary files differ
diff --git a/res/drawable-xlarge/configure_button_pressed.png b/res/drawable-xlarge/configure_button_pressed.png
new file mode 100644
index 000000000..536ed7c3b
--- /dev/null
+++ b/res/drawable-xlarge/configure_button_pressed.png
Binary files differ
diff --git a/res/drawable-xlarge/search_button.xml b/res/drawable-xlarge/search_button.xml
new file mode 100644
index 000000000..6d5d949be
--- /dev/null
+++ b/res/drawable-xlarge/search_button.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 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_pressed="true" android:drawable="@drawable/search_button_pressed" />
+ <item android:drawable="@drawable/search_button_normal" />
+</selector>
diff --git a/res/drawable-xlarge/search_button_normal.png b/res/drawable-xlarge/search_button_normal.png
new file mode 100644
index 000000000..3a3045a86
--- /dev/null
+++ b/res/drawable-xlarge/search_button_normal.png
Binary files differ
diff --git a/res/drawable-xlarge/search_button_pressed.png b/res/drawable-xlarge/search_button_pressed.png
new file mode 100644
index 000000000..8ae6b167b
--- /dev/null
+++ b/res/drawable-xlarge/search_button_pressed.png
Binary files differ
diff --git a/res/drawable/add_button.png b/res/drawable/add_button.png
deleted file mode 100644
index 0edcfa380..000000000
--- a/res/drawable/add_button.png
+++ /dev/null
Binary files differ
diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml
index f0564cab8..fa323fd0c 100644
--- a/res/layout-xlarge/launcher.xml
+++ b/res/layout-xlarge/launcher.xml
@@ -45,30 +45,38 @@
<include android:id="@+id/cell5" layout="@layout/workspace_screen" />
</com.android.launcher2.Workspace>
+ <ImageView
+ android:id="@+id/search_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:src="@drawable/search_button"
+
+ android:onClick="onClickSearchButton"
+ android:focusable="true"
+ android:clickable="true"
+ android:layout_gravity="top|left"/>
<RelativeLayout
android:id="@+id/all_apps_button_cluster"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|right">
- <com.android.launcher2.HandleView
- style="@style/HotseatButton"
- android:id="@+id/all_apps_button"
- android:layout_height="@dimen/button_bar_height"
- android:layout_width="@dimen/button_bar_height"
-
- android:src="@drawable/all_apps_button"
- launcher:direction="horizontal" />
<ImageView
- android:id="@+id/add_button"
+ android:id="@+id/configure_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_toRightOf="@id/all_apps_button"
+ android:src="@drawable/configure_button"
- android:layout_centerVertical="true"
- android:scaleType="center"
- android:src="@drawable/add_button"
+ android:onClick="onClickConfigureButton"
+ android:focusable="true"
+ android:clickable="true" />
+ <ImageView
+ android:id="@+id/all_apps_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_toRightOf="@id/configure_button"
+ android:src="@drawable/all_apps_button"
- android:onClick="onClickAddButton"
+ android:onClick="onClickAllAppsButton"
android:focusable="true"
android:clickable="true" />
<com.android.launcher2.DeleteZone
@@ -76,7 +84,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="@dimen/delete_zone_padding"
- android:layout_toRightOf="@id/all_apps_button"
+ android:layout_toRightOf="@id/configure_button"
android:scaleType="center"
android:src="@drawable/delete_zone_selector"