diff options
author | Winson Chung <winsonc@google.com> | 2015-03-16 12:39:05 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2015-03-16 15:20:39 -0700 |
commit | aa2ab254ea6b59dfe4183015e76c31262036282d (patch) | |
tree | 0ac41102ab8c93ec32ab7088c34085c418f05e64 /res/layout | |
parent | c13b994c04b0945f25dad6487fa3151fc5153164 (diff) | |
download | android_packages_apps_Trebuchet-aa2ab254ea6b59dfe4183015e76c31262036282d.tar.gz android_packages_apps_Trebuchet-aa2ab254ea6b59dfe4183015e76c31262036282d.tar.bz2 android_packages_apps_Trebuchet-aa2ab254ea6b59dfe4183015e76c31262036282d.zip |
Tweaking the apps list fast scroller.
- Making the view span the full width so that you can grab the scroller on the edge of the screen.
- Offsetting the fast-scoll popup so that you can see it as you scrub.
Change-Id: If1b1934bbeac0660d829cfc29c9e588df927c5e5
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/apps_list_view.xml | 7 | ||||
-rw-r--r-- | res/layout/apps_reveal_view.xml | 2 | ||||
-rw-r--r-- | res/layout/apps_view.xml | 16 |
3 files changed, 19 insertions, 6 deletions
diff --git a/res/layout/apps_list_view.xml b/res/layout/apps_list_view.xml index dfb2fc42f..59c04103f 100644 --- a/res/layout/apps_list_view.xml +++ b/res/layout/apps_list_view.xml @@ -20,12 +20,13 @@ android:layout_height="match_parent" android:orientation="vertical" android:elevation="15dp" - android:background="@drawable/apps_list_bg" android:visibility="gone"> <EditText android:id="@+id/app_search_box" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/apps_container_inset" + android:layout_marginRight="@dimen/apps_container_inset" android:padding="16dp" android:hint="@string/apps_view_search_bar_hint" android:maxLines="1" @@ -46,8 +47,10 @@ android:paddingTop="12dp" android:paddingBottom="12dp" android:clipToPadding="false" + android:fadeScrollbars="false" android:scrollbars="vertical" android:scrollbarThumbVertical="@drawable/apps_list_scrollbar_thumb" android:focusable="true" - android:descendantFocusability="afterDescendants" /> + android:descendantFocusability="afterDescendants" + android:background="@drawable/apps_list_bg" /> </LinearLayout>
\ No newline at end of file diff --git a/res/layout/apps_reveal_view.xml b/res/layout/apps_reveal_view.xml index 19e462bee..bc93359c1 100644 --- a/res/layout/apps_reveal_view.xml +++ b/res/layout/apps_reveal_view.xml @@ -21,5 +21,5 @@ android:layout_gravity="center" android:elevation="15dp" android:visibility="invisible" - android:background="@drawable/apps_list_bg" + android:background="@drawable/apps_reveal_bg" android:focusable="false" />
\ No newline at end of file diff --git a/res/layout/apps_view.xml b/res/layout/apps_view.xml index 00f3cca88..86d67e15f 100644 --- a/res/layout/apps_view.xml +++ b/res/layout/apps_view.xml @@ -13,16 +13,26 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- 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.AppsContainerView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/apps_view" android:layout_width="match_parent" android:layout_height="match_parent" - android:padding="8dp" + android:paddingTop="@dimen/apps_container_inset" + android:paddingBottom="@dimen/apps_container_inset" android:background="@drawable/apps_customize_bg" android:descendantFocusability="afterDescendants"> <include - layout="@layout/apps_reveal_view" /> + layout="@layout/apps_reveal_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center" /> <include - layout="@layout/apps_list_view" /> + layout="@layout/apps_list_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center" /> </com.android.launcher3.AppsContainerView>
\ No newline at end of file |