diff options
-rw-r--r-- | res/layout/action_bar_text.xml | 2 | ||||
-rw-r--r-- | res/layout/popup_list_item.xml | 2 | ||||
-rw-r--r-- | res/values-v14/styles.xml | 21 | ||||
-rw-r--r-- | res/values/attrs.xml | 20 | ||||
-rw-r--r-- | res/values/styles.xml | 5 |
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> |