summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-03-17 11:57:24 -0700
committerSunny Goyal <sunnygoyal@google.com>2016-03-17 11:57:39 -0700
commit05c8c57fa72a81f34058036f6dc30c084ca6742b (patch)
tree5fe8be4bb54c2822f80b7134d1df19a6459d90c4 /res/layout
parent1bc8fc3de2113b7be9df304309a42276d642a8c4 (diff)
downloadandroid_packages_apps_Trebuchet-05c8c57fa72a81f34058036f6dc30c084ca6742b.tar.gz
android_packages_apps_Trebuchet-05c8c57fa72a81f34058036f6dc30c084ca6742b.tar.bz2
android_packages_apps_Trebuchet-05c8c57fa72a81f34058036f6dc30c084ca6742b.zip
Removing dependency on LauncherCallbacks for getting the search bounds
> Instead of handling insets in BaseContainerView, directly applying them to margins, as that scpace can't be used for scroll handling > Appliying the top and bottom padding in xml > The left & right padding is defied in xml which is reused for scroll handling Bug: 27108154 Change-Id: Ia32e6d5e8fd1bfafb1d77d1244ce2268e4da9df9
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/all_apps.xml2
-rw-r--r--res/layout/widgets_view.xml2
2 files changed, 4 insertions, 0 deletions
diff --git a/res/layout/all_apps.xml b/res/layout/all_apps.xml
index faa88f7cf..1b843ed7d 100644
--- a/res/layout/all_apps.xml
+++ b/res/layout/all_apps.xml
@@ -22,6 +22,8 @@
android:id="@+id/apps_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:paddingTop="@dimen/container_bounds_inset"
+ android:paddingBottom="@dimen/container_bounds_inset"
android:orientation="vertical"
launcher:revealBackground="@drawable/quantum_panel_shape">
diff --git a/res/layout/widgets_view.xml b/res/layout/widgets_view.xml
index 410d1be3f..e55f6f085 100644
--- a/res/layout/widgets_view.xml
+++ b/res/layout/widgets_view.xml
@@ -22,6 +22,8 @@
android:id="@+id/widgets_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:paddingTop="@dimen/container_bounds_inset"
+ android:paddingBottom="@dimen/container_bounds_inset"
android:descendantFocusability="afterDescendants"
launcher:revealBackground="@drawable/quantum_panel_shape_dark">