From 2c6e5ccbcd7c3f87e7e85029782440600dc0a3d8 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Mon, 1 Jun 2015 14:38:24 -0700 Subject: Ensuring that we use the screen width more optimally in AllApps. - Fixing issue with prediction bar height being calculated incorrectly - Fixing issue where the prediction bar divider was not drawn exactly between the bar and the first row of apps - Removing padding to allow scrollbars to reach full height Bug: 20222023 Bug: 21335377 Change-Id: I2c0614a36e2294d0d6184a6bff4847876ffe971e --- res/layout/all_apps_container.xml | 1 + res/layout/all_apps_icon.xml | 2 +- res/layout/all_apps_prediction_bar_icon.xml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'res/layout') diff --git a/res/layout/all_apps_container.xml b/res/layout/all_apps_container.xml index a20ab46d8..fc77cd31f 100644 --- a/res/layout/all_apps_container.xml +++ b/res/layout/all_apps_container.xml @@ -38,6 +38,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/all_apps_search_bar_height" + android:paddingBottom="@dimen/all_apps_prediction_bar_bottom_padding" android:orientation="horizontal" android:descendantFocusability="afterDescendants" android:focusable="true" diff --git a/res/layout/all_apps_icon.xml b/res/layout/all_apps_icon.xml index 10ed25c47..0985e95c0 100644 --- a/res/layout/all_apps_icon.xml +++ b/res/layout/all_apps_icon.xml @@ -20,7 +20,7 @@ android:id="@+id/icon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="left|center_vertical" + android:layout_gravity="center" android:paddingTop="@dimen/all_apps_icon_top_bottom_padding" android:paddingBottom="@dimen/all_apps_icon_top_bottom_padding" android:focusable="true" diff --git a/res/layout/all_apps_prediction_bar_icon.xml b/res/layout/all_apps_prediction_bar_icon.xml index 1e75d14b6..5f63f6bdb 100644 --- a/res/layout/all_apps_prediction_bar_icon.xml +++ b/res/layout/all_apps_prediction_bar_icon.xml @@ -19,7 +19,7 @@ style="@style/Icon.AllApps" android:id="@+id/icon" android:layout_width="0dp" - android:layout_height="match_parent" + android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" android:focusable="true" -- cgit v1.2.3