diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-06-23 16:12:50 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-06-26 14:56:36 -0700 |
commit | 89d5c5a31bd6cf4caf815b680ec670896b91803d (patch) | |
tree | b9d0a9a9fd6dec880fb6076bc2b8d4f38870839f /res/layout/all_apps.xml | |
parent | bbe504d24d5e0757d1a7772af822b7a6e274c9b4 (diff) | |
download | android_packages_apps_Trebuchet-89d5c5a31bd6cf4caf815b680ec670896b91803d.tar.gz android_packages_apps_Trebuchet-89d5c5a31bd6cf4caf815b680ec670896b91803d.tar.bz2 android_packages_apps_Trebuchet-89d5c5a31bd6cf4caf815b680ec670896b91803d.zip |
Updating fast scrollbar UI in Landscape
Creating a separate view for FastScrollBar and moving all the relavant logic in
the view.
For protrait, the touch handling is delegated by the recycler view just like before.
For landscape, the dcrollbar does not overlay with recyclerView and handles the touch
itself
Bug: 37015359
Change-Id: Ie1981326457ba739bdf0ac8063db1065f395f133
Diffstat (limited to 'res/layout/all_apps.xml')
-rw-r--r-- | res/layout/all_apps.xml | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/res/layout/all_apps.xml b/res/layout/all_apps.xml index a3c253537..93662fc08 100644 --- a/res/layout/all_apps.xml +++ b/res/layout/all_apps.xml @@ -16,7 +16,8 @@ <!-- The top and bottom paddings are defined in this container, but since we want the list view to span the full width (for touch interception purposes), we will bake the left/right padding into that view's background itself. --> -<com.android.launcher3.allapps.AllAppsContainerView xmlns:android="http://schemas.android.com/apk/res/android" +<com.android.launcher3.allapps.AllAppsContainerView + xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res-auto" android:id="@+id/apps_view" android:layout_width="match_parent" @@ -39,6 +40,8 @@ android:layout_height="match_parent" android:layout_gravity="center" android:focusable="true" + android:clipToPadding="false" + android:clipChildren="true" android:focusableInTouchMode="true" android:saveEnabled="false" android:visibility="gone"> @@ -55,20 +58,14 @@ android:descendantFocusability="afterDescendants" android:focusable="true" /> - <!-- Fast scroller popup --> - <TextView - style="@style/FastScrollerPopup" - android:layout_alignTop="@+id/apps_list_view" - android:id="@+id/fast_scroller_popup" - android:layout_alignParentEnd="true" - android:layout_marginEnd="@dimen/fastscroll_popup_margin" /> - <!-- Note: we are reusing/repurposing a system attribute for search layout, because of a platform bug, which prevents using custom attributes in <include> tag --> <include layout="?android:attr/keyboardLayout" android:id="@+id/search_container" /> + <include layout="@layout/all_apps_fast_scroller" /> + </com.android.launcher3.allapps.AllAppsRecyclerViewContainerView> <View style="@style/AllAppsNavBarProtection" |