diff options
author | Adam Lesinski <adamlesinski@google.com> | 2010-12-08 15:19:47 -0800 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2010-12-08 15:24:01 -0800 |
commit | 076572d5d1c23bd45e689693fde4adf12a2e04de (patch) | |
tree | be6510e459f462910987c98fc6cd2185679b3b68 /res/layout-xlarge | |
parent | d6bb51406fa63d93bf634b64e9f115e49a9c9c29 (diff) | |
download | android_packages_wallpapers_LivePicker-076572d5d1c23bd45e689693fde4adf12a2e04de.tar.gz android_packages_wallpapers_LivePicker-076572d5d1c23bd45e689693fde4adf12a2e04de.tar.bz2 android_packages_wallpapers_LivePicker-076572d5d1c23bd45e689693fde4adf12a2e04de.zip |
Fixed issue where text was being cut off
-New framework change in GridView allowed some
layout changes to be made to better support
automatic sizing
Change-Id: I8bfffd59c71e46994c9735d00b580a88c08ab04d
Diffstat (limited to 'res/layout-xlarge')
-rw-r--r-- | res/layout-xlarge/live_wallpaper_entry.xml | 11 | ||||
-rw-r--r-- | res/layout-xlarge/live_wallpaper_list.xml | 6 |
2 files changed, 9 insertions, 8 deletions
diff --git a/res/layout-xlarge/live_wallpaper_entry.xml b/res/layout-xlarge/live_wallpaper_entry.xml index b2515a7..eacb487 100644 --- a/res/layout-xlarge/live_wallpaper_entry.xml +++ b/res/layout-xlarge/live_wallpaper_entry.xml @@ -21,15 +21,16 @@ android:padding="6dip"> <ImageView android:id="@+id/thumbnail" - android:layout_width="@dimen/live_wallpaper_thumbnail_width" - android:layout_height="@dimen/live_wallpaper_thumbnail_height" + android:layout_width="match_parent" + android:layout_height="0dp" android:layout_gravity="center" + android:layout_weight="1" android:scaleType="centerCrop" /> <TextView android:id="@+id/title" - android:layout_width="@dimen/live_wallpaper_thumbnail_width" - android:layout_height="match_parent" - android:layout_weight="1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="0" android:layout_gravity="center" android:gravity="bottom" android:textAppearance="?android:attr/textAppearanceMedium" diff --git a/res/layout-xlarge/live_wallpaper_list.xml b/res/layout-xlarge/live_wallpaper_list.xml index 50d99a7..312e672 100644 --- a/res/layout-xlarge/live_wallpaper_list.xml +++ b/res/layout-xlarge/live_wallpaper_list.xml @@ -20,12 +20,12 @@ android:gravity="center"> <GridView android:id="@android:id/list" - android:layout_width="800dp" + android:layout_width="match_parent" android:layout_height="400dp" android:layout_gravity="center" android:numColumns="3" - android:stretchMode="columnWidth" - android:horizontalSpacing="15dp" + android:stretchMode="spacingWidth" + android:columnWidth="@dimen/live_wallpaper_grid_item_width" android:verticalSpacing="15dp" android:drawSelectorOnTop="false" /> <TextView |