diff options
author | Winson Chung <winsonc@google.com> | 2011-05-09 11:56:34 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-05-09 16:03:19 -0700 |
commit | 4e6a976c2d85f7261ae4318a9ccffd2440f73124 (patch) | |
tree | fdb2e2b157974f2e5260cc02c56b80d7981ab4ca /res/layout-port | |
parent | 63257c110a4ee54d5e8872c471cce254cf613c7a (diff) | |
download | android_packages_apps_Trebuchet-4e6a976c2d85f7261ae4318a9ccffd2440f73124.tar.gz android_packages_apps_Trebuchet-4e6a976c2d85f7261ae4318a9ccffd2440f73124.tar.bz2 android_packages_apps_Trebuchet-4e6a976c2d85f7261ae4318a9ccffd2440f73124.zip |
Adding keyboard focus support for phones.
Change-Id: I2daab961d0727bc5d892db6b50ad0f51fe23873c
Diffstat (limited to 'res/layout-port')
-rw-r--r-- | res/layout-port/application.xml | 4 | ||||
-rw-r--r-- | res/layout-port/launcher.xml | 31 |
2 files changed, 12 insertions, 23 deletions
diff --git a/res/layout-port/application.xml b/res/layout-port/application.xml index 32c1510d9..ddc835420 100644 --- a/res/layout-port/application.xml +++ b/res/layout-port/application.xml @@ -15,4 +15,6 @@ --> <com.android.launcher2.BubbleTextView xmlns:android="http://schemas.android.com/apk/res/android" - style="@style/WorkspaceIcon.Portrait" /> + style="@style/WorkspaceIcon.Portrait" + android:focusable="true" + android:background="@drawable/focusable_view_bg" /> diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml index b10b56d76..c7bcbb026 100644 --- a/res/layout-port/launcher.xml +++ b/res/layout-port/launcher.xml @@ -93,39 +93,26 @@ android:layout_width="fill_parent" android:layout_height="@dimen/button_bar_height" android:layout_gravity="bottom|center_horizontal" - android:paddingTop="2dip" - > - + android:paddingTop="2dip"> + <ImageView + android:id="@+id/hotseat_left" + style="@style/HotseatButton.Left" + android:layout_toLeftOf="@id/all_apps_button" + android:src="@drawable/hotseat_phone" + android:onClick="launchHotSeat" /> <com.android.launcher2.HandleView style="@style/HotseatButton" android:id="@+id/all_apps_button" android:layout_centerHorizontal="true" android:layout_alignParentBottom="true" - android:src="@drawable/all_apps_button" - launcher:direction="horizontal" - /> - - <ImageView - android:id="@+id/hotseat_left" - style="@style/HotseatButton.Left" - android:layout_toLeftOf="@id/all_apps_button" - - android:src="@drawable/hotseat_phone" - - android:onClick="launchHotSeat" - /> - + launcher:direction="horizontal" /> <ImageView android:id="@+id/hotseat_right" style="@style/HotseatButton.Right" android:layout_toRightOf="@id/all_apps_button" - android:src="@drawable/hotseat_browser" - - android:onClick="launchHotSeat" - /> - + android:onClick="launchHotSeat" /> </RelativeLayout> </com.android.launcher2.DragLayer> |