summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-07-29 10:18:09 -0700
committerClark Scheff <clark@cyngn.com>2014-07-29 10:18:09 -0700
commite71e42f7304f5e6ba563a48de4ce1e70c94776ef (patch)
tree36da1d1c4f57c2984e4725189bcd7ef926b64ef5
parentd58b5591df0dd7b28004f4ed0b779a45a886f5b4 (diff)
downloadpackages_apps_ThemeChooser-e71e42f7304f5e6ba563a48de4ce1e70c94776ef.tar.gz
packages_apps_ThemeChooser-e71e42f7304f5e6ba563a48de4ce1e70c94776ef.tar.bz2
packages_apps_ThemeChooser-e71e42f7304f5e6ba563a48de4ce1e70c94776ef.zip
Make the actual content of title card 48dp.
The parent layout was set to 48dp which included a nine patch background. This made the actual content smaller than the 48dp specified in the redlines. Change-Id: I2732734e78b607dc65fa61609b478de29ccc24aa
-rw-r--r--res/layout/v2_fragment_pager_list.xml4
-rw-r--r--res/values/dimens.xml1
2 files changed, 3 insertions, 2 deletions
diff --git a/res/layout/v2_fragment_pager_list.xml b/res/layout/v2_fragment_pager_list.xml
index 57747db..f342b7d 100644
--- a/res/layout/v2_fragment_pager_list.xml
+++ b/res/layout/v2_fragment_pager_list.xml
@@ -106,14 +106,14 @@
<FrameLayout
android:id="@+id/title_card"
android:layout_width="@dimen/theme_preview_width"
- android:layout_height="48dp"
+ android:layout_height="wrap_content"
android:layout_below="@id/shadow_frame"
android:layout_centerHorizontal="true"
android:background="@drawable/card_themepreview_bg">
<LinearLayout
android:id="@+id/title_layout"
android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_height="@dimen/title_card_height"
android:alpha="0">
<TextView
android:id="@+id/title"
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 6885b9c..f57ef7e 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -47,6 +47,7 @@
<dimen name="collapsed_navbar_card_margin_top">25dp</dimen>
<dimen name="expanded_card_margin_top">16dp</dimen>
<dimen name="wallpaper_card_height">168dp</dimen>
+ <dimen name="title_card_height">48dp</dimen>
<!-- This is a hack. The viewpager needs to expand horizontally
when a theme is going to be mix'n'matched in order to fit the larger padded theme cards.