summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorLinus Lee <llee@cyngn.com>2015-04-02 15:53:26 -0700
committerRajesh Yengisetty <rajesh@cyngn.com>2015-04-16 21:47:37 +0000
commitbdee9dd24e9bc46176463018881433a4715a0a7c (patch)
tree78de5c21dc2a79041ac4655424b05d3852f3d25b /res/layout
parent60046217f7508a70f0b83a2fcba551f75fc67f2c (diff)
downloadandroid_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')
-rw-r--r--res/layout/app_drawer_item.xml11
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"