diff options
author | Romain Guy <romainguy@google.com> | 2010-04-05 18:39:24 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-04-05 18:39:24 -0700 |
commit | 3af600182f200b52ac93897061efb4896dd3ea8e (patch) | |
tree | 2f77a6d8464be07d5707cebb921fc4955b9712da /res/layout-land | |
parent | 327a9a3a309eeda5bdc18281066f2e19236455bc (diff) | |
download | packages_apps_trebuchet-3af600182f200b52ac93897061efb4896dd3ea8e.zip packages_apps_trebuchet-3af600182f200b52ac93897061efb4896dd3ea8e.tar.gz packages_apps_trebuchet-3af600182f200b52ac93897061efb4896dd3ea8e.tar.bz2 |
Last minute hack to deliver touch events to widget in landscape mode.
Bug #2562729
In landscape, the left and right dots buttons are 93dip wide; this makes them overlap
with widgets at the bottom of the screen. The dots do not need to be that wide but
we chose this size to make it easier to tap them in portrait. To avoid issues in
landscape, this change introduces a new type of ImageView that can ignore touch
events in a certain zone. This was easier and cheaper than re-cutting 36+ assets.
Change-Id: Id261fba41a43dede943e72060e39e87658e4b0df
Diffstat (limited to 'res/layout-land')
-rw-r--r-- | res/layout-land/launcher.xml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index 61ebad0..44e1cfb 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -41,7 +41,7 @@ </com.android.launcher2.Workspace> - <ImageView + <com.android.launcher2.ClippedImageView android:id="@+id/previous_screen" android:layout_width="93dip" android:layout_height="@dimen/button_bar_height" @@ -53,10 +53,12 @@ android:onClick="previousScreen" + launcher:ignoreZone="56dip" + android:focusable="true" android:clickable="true" /> - <ImageView + <com.android.launcher2.ClippedImageView android:id="@+id/next_screen" android:layout_width="93dip" android:layout_height="@dimen/button_bar_height" @@ -68,6 +70,8 @@ android:onClick="nextScreen" + launcher:ignoreZone="-56dip" + android:focusable="true" android:clickable="true" /> |