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
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