diff options
author | Patrick Dubroy <dubroy@google.com> | 2010-08-17 15:11:18 -0700 |
---|---|---|
committer | Patrick Dubroy <dubroy@google.com> | 2010-08-18 17:57:59 -0700 |
commit | 4ed6278e518cc6894cb150b606382e8e6a012599 (patch) | |
tree | cc6c7fac56a0ac8bde4004c4f1dc868f170e5dbd /res/layout-xlarge | |
parent | f07e7a441c5de51d095f54d2735b7c028f217e8e (diff) | |
download | packages_apps_trebuchet-4ed6278e518cc6894cb150b606382e8e6a012599.zip packages_apps_trebuchet-4ed6278e518cc6894cb150b606382e8e6a012599.tar.gz packages_apps_trebuchet-4ed6278e518cc6894cb150b606382e8e6a012599.tar.bz2 |
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/layout-xlarge')
-rw-r--r-- | res/layout-xlarge/launcher.xml | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index 8133853..4785b0c 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 |