diff options
author | Linus Lee <llee@cyngn.com> | 2015-04-02 15:53:26 -0700 |
---|---|---|
committer | Linus Lee <llee@cyngn.com> | 2015-04-16 19:15:31 +0000 |
commit | 0ce1d70dffb2f19a8e2997f03556b46b44c57156 (patch) | |
tree | 7c3107c84f24ea2e03e851a73a96705d2f9ceee2 /res/layout | |
parent | d06291251703ce19968625742438c03351203d37 (diff) | |
download | android_packages_apps_Trebuchet-0ce1d70dffb2f19a8e2997f03556b46b44c57156.tar.gz android_packages_apps_Trebuchet-0ce1d70dffb2f19a8e2997f03556b46b44c57156.tar.bz2 android_packages_apps_Trebuchet-0ce1d70dffb2f19a8e2997f03556b46b44c57156.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
Diffstat (limited to 'res/layout')
-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 cc2ed8f9b..5d3b94655 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" |