diff options
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> |