diff options
author | Wu-cheng Li <wuchengli@google.com> | 2012-07-19 18:35:30 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2012-07-20 16:07:11 +0800 |
commit | 2b44c26ec288da393f3b745647b529a0d58e4aa4 (patch) | |
tree | 5111f2cf1437ffaa128b4aa9220ebe55d973597d /res/values | |
parent | 6af8c7d7caca4f0ba9879db09da7daa100ddd0cf (diff) | |
download | android_packages_apps_Snap-2b44c26ec288da393f3b745647b529a0d58e4aa4.tar.gz android_packages_apps_Snap-2b44c26ec288da393f3b745647b529a0d58e4aa4.tar.bz2 android_packages_apps_Snap-2b44c26ec288da393f3b745647b529a0d58e4aa4.zip |
Do not use listPreferredItemHeightSmall before API 14.
bug:6706647
Change-Id: I9ebdb299e16bdf467cc46b3d094306d93147ee64
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/attrs.xml | 20 | ||||
-rw-r--r-- | res/values/styles.xml | 5 |
2 files changed, 24 insertions, 1 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml new file mode 100644 index 000000000..f9c3d2486 --- /dev/null +++ b/res/values/attrs.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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. +--> +<resources> + <declare-styleable name="Theme.GalleryBase"> + <attr name="listPreferredItemHeightSmall" format="dimension" /> + </declare-styleable> +</resources> diff --git a/res/values/styles.xml b/res/values/styles.xml index 3c32cef6d..7389318ce 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -15,7 +15,10 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <style name="Theme.Gallery" parent="android:Theme.Holo"> + <style name="Theme.GalleryBase" parent="android:Theme.Holo"> + <item name="listPreferredItemHeightSmall">48dp</item> + </style> + <style name="Theme.Gallery" parent="Theme.GalleryBase"> <item name="android:displayOptions"></item> <item name="android:windowContentOverlay">@null</item> <item name="android:actionBarStyle">@style/Holo.ActionBar</item> |