summaryrefslogtreecommitdiffstats
path: root/res/layout/fragment_pager_list.xml
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2014-08-28 23:17:38 -0700
committerd34d <clark@cyngn.com>2014-08-28 23:17:38 -0700
commitcb95d19cc673d326402806e512af9cb10d1037ac (patch)
treeeacb4f42916f0cd82c99c080bd7595099f0254fc /res/layout/fragment_pager_list.xml
parentb6ea86a140a2b7bbc9abe0de574c4c5d0ad96e5d (diff)
downloadpackages_apps_ThemeChooser-cb95d19cc673d326402806e512af9cb10d1037ac.tar.gz
packages_apps_ThemeChooser-cb95d19cc673d326402806e512af9cb10d1037ac.tar.bz2
packages_apps_ThemeChooser-cb95d19cc673d326402806e512af9cb10d1037ac.zip
Use NavBarSpace for padding the bottom of some layouts
We've used Space in enough layouts that it makes sense to create a view that can take care of all the logic regarding padding the bottom of layouts so content goes above the navigation bar. This view simply sets the height to 0 in onMeasure() when no navigation bar is detected. It leaves the height to whatever the super class had set it to when there is a navigation bar. Change-Id: I908c6a8a01ba4f761335909e9ecfb48a8a3007d2
Diffstat (limited to 'res/layout/fragment_pager_list.xml')
-rw-r--r--res/layout/fragment_pager_list.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/layout/fragment_pager_list.xml b/res/layout/fragment_pager_list.xml
index 6886391..b0c212b 100644
--- a/res/layout/fragment_pager_list.xml
+++ b/res/layout/fragment_pager_list.xml
@@ -162,9 +162,9 @@
<Space android:layout_width="match_parent"
android:layout_height="@dimen/expanded_card_margin_top" />
- <Space android:id="@+id/nav_bar_spacer"
- android:layout_width="match_parent"
- android:layout_height="@*android:dimen/system_bar_height" />
+ <com.cyngn.theme.widget.NavBarSpace
+ android:layout_width="match_parent"
+ android:layout_height="@*android:dimen/system_bar_height" />
</LinearLayout>
</LinearLayout>
</com.cyngn.theme.widget.LockableScrollView>