summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2012-07-20 01:28:21 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-07-20 01:28:21 -0700
commit24ca336b4cc73ac4c59487a9af2230c28b715734 (patch)
tree01fb67d5a154e8978563c0ce9440e747f66be84f
parent064c30b6c89c4282487290ea11e7d3fd1ef68c64 (diff)
parent99c4c15c64fda3ccde5755c51527aa5094f8fda6 (diff)
downloadandroid_packages_apps_Gallery2-24ca336b4cc73ac4c59487a9af2230c28b715734.tar.gz
android_packages_apps_Gallery2-24ca336b4cc73ac4c59487a9af2230c28b715734.tar.bz2
android_packages_apps_Gallery2-24ca336b4cc73ac4c59487a9af2230c28b715734.zip
Merge "Do not use listPreferredItemHeightSmall before API 14." into gb-ub-photos-arches
-rw-r--r--res/layout/action_bar_text.xml2
-rw-r--r--res/layout/popup_list_item.xml2
-rw-r--r--res/values-v14/styles.xml21
-rw-r--r--res/values/attrs.xml20
-rw-r--r--res/values/styles.xml5
5 files changed, 47 insertions, 3 deletions
diff --git a/res/layout/action_bar_text.xml b/res/layout/action_bar_text.xml
index 2a1f0318c..7fccf0268 100644
--- a/res/layout/action_bar_text.xml
+++ b/res/layout/action_bar_text.xml
@@ -23,5 +23,5 @@
android:gravity="center_vertical"
android:paddingLeft="18dp"
android:paddingRight="18dp"
- android:minHeight="?android:attr/listPreferredItemHeightSmall"
+ android:minHeight="?attr/listPreferredItemHeightSmall"
/>
diff --git a/res/layout/popup_list_item.xml b/res/layout/popup_list_item.xml
index 4dbc610d9..3c43e8c1a 100644
--- a/res/layout/popup_list_item.xml
+++ b/res/layout/popup_list_item.xml
@@ -22,6 +22,6 @@
android:gravity="center_vertical"
android:paddingLeft="16dp"
android:paddingRight="16dp"
- android:minHeight="?android:attr/listPreferredItemHeightSmall"
+ android:minHeight="?attr/listPreferredItemHeightSmall"
android:minWidth="196dp"
/>
diff --git a/res/values-v14/styles.xml b/res/values-v14/styles.xml
new file mode 100644
index 000000000..d14ad0899
--- /dev/null
+++ b/res/values-v14/styles.xml
@@ -0,0 +1,21 @@
+<?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>
+ <style name="Theme.GalleryBase" parent="android:Theme.Holo">
+ <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item>
+ </style>
+</resources>
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>