summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorPatrick Dubroy <dubroy@google.com>2010-08-17 15:11:18 -0700
committerPatrick Dubroy <dubroy@google.com>2010-08-18 17:57:59 -0700
commit4ed6278e518cc6894cb150b606382e8e6a012599 (patch)
treecc6c7fac56a0ac8bde4004c4f1dc868f170e5dbd /res
parentf07e7a441c5de51d095f54d2735b7c028f217e8e (diff)
downloadandroid_packages_apps_Trebuchet-4ed6278e518cc6894cb150b606382e8e6a012599.tar.gz
android_packages_apps_Trebuchet-4ed6278e518cc6894cb150b606382e8e6a012599.tar.bz2
android_packages_apps_Trebuchet-4ed6278e518cc6894cb150b606382e8e6a012599.zip
Implement button to get application info for an app shortcut.
For now, it's just a drag target like the delete zone. Once all apps and the home screen support a selection mode, this (and delete) will be implemented as buttons in the Contextual Action Bar. Change-Id: I6bf43d03eefda672ea34c583a7021137da22b184
Diffstat (limited to 'res')
-rw-r--r--res/drawable-xlarge/info_button.pngbin0 -> 1651 bytes
-rw-r--r--res/layout-xlarge/launcher.xml30
-rw-r--r--res/values-xlarge/colors.xml21
3 files changed, 45 insertions, 6 deletions
diff --git a/res/drawable-xlarge/info_button.png b/res/drawable-xlarge/info_button.png
new file mode 100644
index 000000000..5080f6ab4
--- /dev/null
+++ b/res/drawable-xlarge/info_button.png
Binary files differ
diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml
index 8133853de..4785b0c35 100644
--- a/res/layout-xlarge/launcher.xml
+++ b/res/layout-xlarge/launcher.xml
@@ -63,34 +63,52 @@
android:layout_gravity="top|right">
<ImageView
- android:id="@+id/configure_button"
+ android:id="@+id/all_apps_button"
+ android:src="@drawable/all_apps_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+
+ android:onClick="onClickAllAppsButton"
+ android:focusable="true"
+ android:clickable="true" />
+
+ <ImageView
+ android:id="@+id/configure_button"
android:src="@drawable/configure_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_toLeftOf="@id/all_apps_button"
android:onClick="onClickConfigureButton"
android:focusable="true"
android:clickable="true" />
+
<com.android.launcher2.DeleteZone
android:id="@+id/delete_zone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_alignLeft="@id/all_apps_button"
+ android:layout_alignTop="@id/all_apps_button"
android:paddingTop="@dimen/delete_zone_padding"
android:scaleType="center"
android:src="@drawable/delete_zone_selector"
android:visibility="gone"
launcher:direction="horizontal" />
- <ImageView
- android:id="@+id/all_apps_button"
+
+ <com.android.launcher2.ApplicationInfoDropTarget
+ android:id="@+id/info_button"
+ android:src="@drawable/info_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_toRightOf="@id/configure_button"
- android:src="@drawable/all_apps_button"
+ android:layout_alignLeft="@id/configure_button"
+ android:layout_centerVertical="true"
+ android:visibility="gone"
- android:onClick="onClickAllAppsButton"
android:focusable="true"
android:clickable="true" />
+
</RelativeLayout>
<TabHost
diff --git a/res/values-xlarge/colors.xml b/res/values-xlarge/colors.xml
new file mode 100644
index 000000000..a6cdd06bf
--- /dev/null
+++ b/res/values-xlarge/colors.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+**
+** Copyright 2010, 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.
+*/
+-->
+<resources>
+ <color name="app_info_filter">#A50000FE</color>
+</resources> \ No newline at end of file