diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/layout-xlarge/wallpaper_chooser.xml | 13 | ||||
-rw-r--r-- | res/layout-xlarge/wallpaper_chooser_base.xml | 23 | ||||
-rw-r--r-- | res/layout-xlarge/wallpaper_item.xml | 6 | ||||
-rw-r--r-- | res/layout/wallpaper_chooser_base.xml | 5 | ||||
-rw-r--r-- | res/values-xlarge/config.xml | 4 | ||||
-rw-r--r-- | res/values-xlarge/dimens.xml | 3 | ||||
-rw-r--r-- | res/values/config.xml | 4 |
7 files changed, 48 insertions, 10 deletions
diff --git a/res/layout-xlarge/wallpaper_chooser.xml b/res/layout-xlarge/wallpaper_chooser.xml index 9649e88..76a896d 100644 --- a/res/layout-xlarge/wallpaper_chooser.xml +++ b/res/layout-xlarge/wallpaper_chooser.xml @@ -20,8 +20,11 @@ <GridView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/gallery" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:numColumns="4" - android:columnWidth="@dimen/wallpaper_small_width" - android:stretchMode="columnWidth" />
\ No newline at end of file + android:layout_width="match_parent" + android:layout_height="400dp" + android:layout_gravity="center" + android:numColumns="3" + android:stretchMode="spacingWidth" + android:columnWidth="@dimen/wallpaper_chooser_grid_width" + android:verticalSpacing="15dp" + android:drawSelectorOnTop="false" /> diff --git a/res/layout-xlarge/wallpaper_chooser_base.xml b/res/layout-xlarge/wallpaper_chooser_base.xml new file mode 100644 index 0000000..16888ec --- /dev/null +++ b/res/layout-xlarge/wallpaper_chooser_base.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2010, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" /> diff --git a/res/layout-xlarge/wallpaper_item.xml b/res/layout-xlarge/wallpaper_item.xml index 4246b9a..e17c046 100644 --- a/res/layout-xlarge/wallpaper_item.xml +++ b/res/layout-xlarge/wallpaper_item.xml @@ -15,9 +15,9 @@ --> <ImageView xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="@dimen/wallpaper_small_width" - android:layout_height="wrap_content" - android:padding="5dp" + android:layout_width="match_parent" + android:layout_height="@dimen/wallpaper_chooser_grid_height" + android:padding="6dp" android:scaleType="fitXY" android:adjustViewBounds="false" android:focusable="false" /> diff --git a/res/layout/wallpaper_chooser_base.xml b/res/layout/wallpaper_chooser_base.xml index 8447027..fa8ea93 100644 --- a/res/layout/wallpaper_chooser_base.xml +++ b/res/layout/wallpaper_chooser_base.xml @@ -19,7 +19,10 @@ --> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/wallpaper_chooser_base" android:layout_width="match_parent" android:layout_height="match_parent"> + <fragment class="com.android.launcher2.WallpaperChooserDialogFragment" + android:id="@+id/wallpaper_chooser_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" /> </FrameLayout> diff --git a/res/values-xlarge/config.xml b/res/values-xlarge/config.xml index 55a96f6..c254eb3 100644 --- a/res/values-xlarge/config.xml +++ b/res/values-xlarge/config.xml @@ -51,4 +51,8 @@ <!-- The slope, in percent, of the drag movement needed to drag an item out of the customization drawer (y / x * 100%) --> <integer name="config_customizationDrawerDragSlopeThreshold">150</integer> + + <style name="config_orientation"> + <item name="@android:screenOrientation">unspecified</item> + </style> </resources> diff --git a/res/values-xlarge/dimens.xml b/res/values-xlarge/dimens.xml index a9ba1d5..89722e4 100644 --- a/res/values-xlarge/dimens.xml +++ b/res/values-xlarge/dimens.xml @@ -51,5 +51,6 @@ <dimen name="delete_zone_padding">20dip</dimen> <!-- dimensions for the wallpaper picker wallpaper thumbnail width --> - <dimen name="wallpaper_small_width">170dp</dimen> + <dimen name="wallpaper_chooser_grid_width">230dp</dimen> + <dimen name="wallpaper_chooser_grid_height">185dp</dimen> </resources> diff --git a/res/values/config.xml b/res/values/config.xml index 9350ad1..473ed58 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -32,4 +32,8 @@ <!-- The distance at which the animation should take the max duration --> <integer name="config_dropAnimMaxDist">800</integer> + + <style name="config_orientation"> + <item name="@android:screenOrientation">nosensor</item> + </style> </resources> |