diff options
author | Adam Lesinski <adamlesinski@google.com> | 2010-11-19 15:06:46 -0800 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2010-11-24 13:37:03 -0800 |
commit | cd5d807f53d9bca006dfc9f46d83497c27e89227 (patch) | |
tree | 5f4b0b287460a7104e97b0308caf107e1770b089 /res/layout-xlarge | |
parent | 59fbda815e7b1c38f7aaf5d7eb87601f78e88c5b (diff) | |
download | android_packages_apps_Trebuchet-cd5d807f53d9bca006dfc9f46d83497c27e89227.tar.gz android_packages_apps_Trebuchet-cd5d807f53d9bca006dfc9f46d83497c27e89227.tar.bz2 android_packages_apps_Trebuchet-cd5d807f53d9bca006dfc9f46d83497c27e89227.zip |
Updating the Static Wallpaper picker for Tablet
- Updated WallpaperChooser to use FragmentDialogs
- Backwards compatible with old WallpaperChooser
UI on non XLarge screens
- There is a known bug with AlertDialogs (b/3225529)
that prevents an AlertDialog to expand to fit its
content. The squishing of the GridView is caused
by that bug.
Change-Id: I49381aab4aa24362e8c92da284797fce0e63823c
Diffstat (limited to 'res/layout-xlarge')
-rw-r--r-- | res/layout-xlarge/wallpaper_chooser.xml | 27 | ||||
-rw-r--r-- | res/layout-xlarge/wallpaper_item.xml | 23 |
2 files changed, 50 insertions, 0 deletions
diff --git a/res/layout-xlarge/wallpaper_chooser.xml b/res/layout-xlarge/wallpaper_chooser.xml new file mode 100644 index 000000000..9649e88f9 --- /dev/null +++ b/res/layout-xlarge/wallpaper_chooser.xml @@ -0,0 +1,27 @@ +<?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. +*/ +--> + +<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 diff --git a/res/layout-xlarge/wallpaper_item.xml b/res/layout-xlarge/wallpaper_item.xml new file mode 100644 index 000000000..4246b9ab5 --- /dev/null +++ b/res/layout-xlarge/wallpaper_item.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 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. +--> + +<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:scaleType="fitXY" + android:adjustViewBounds="false" + android:focusable="false" /> |