diff options
author | Linus Lee <llee@cyngn.com> | 2015-04-02 15:53:26 -0700 |
---|---|---|
committer | Rajesh Yengisetty <rajesh@cyngn.com> | 2015-04-16 21:47:37 +0000 |
commit | bdee9dd24e9bc46176463018881433a4715a0a7c (patch) | |
tree | 78de5c21dc2a79041ac4655424b05d3852f3d25b /res/layout/app_drawer_item.xml | |
parent | 60046217f7508a70f0b83a2fcba551f75fc67f2c (diff) | |
download | android_packages_apps_Trebuchet-bdee9dd24e9bc46176463018881433a4715a0a7c.tar.gz android_packages_apps_Trebuchet-bdee9dd24e9bc46176463018881433a4715a0a7c.tar.bz2 android_packages_apps_Trebuchet-bdee9dd24e9bc46176463018881433a4715a0a7c.zip |
AppDrawer: Add highlighting scrubbing and offset
When you drag the scrubber it now highlights that section differently
Also when you drag on the scrubber, instead of bringing the section
into view at any point, it will try to make it the 3 row from the bottom
Change-Id: I7cefaa24fb3c757f6e031247bb4a247473dde828
(cherry picked from commit 0ce1d70dffb2f19a8e2997f03556b46b44c57156)
Diffstat (limited to 'res/layout/app_drawer_item.xml')
-rw-r--r-- | res/layout/app_drawer_item.xml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/res/layout/app_drawer_item.xml b/res/layout/app_drawer_item.xml index 43e2562ae..ac63b7c01 100644 --- a/res/layout/app_drawer_item.xml +++ b/res/layout/app_drawer_item.xml @@ -19,6 +19,15 @@ android:splitMotionEvents="false" android:layout_width="match_parent" android:layout_height="wrap_content"> + <View + android:id="@+id/fading_background_back" + android:alpha="0" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_alignTop="@+id/drawer_item_flow" + android:layout_alignBottom="@+id/drawer_item_flow" + android:background="@color/app_drawer_drag_background" /> + <!-- Layout in back to front render order --> <LinearLayout android:id="@+id/drawer_item_flow" @@ -30,7 +39,7 @@ android:orientation="horizontal" /> <View - android:id="@+id/fading_background" + android:id="@+id/fading_background_front" android:alpha="0" android:layout_width="fill_parent" android:layout_height="fill_parent" |