diff options
author | Ruben Brunk <rubenbrunk@google.com> | 2012-12-19 10:47:49 -0800 |
---|---|---|
committer | Ruben Brunk <rubenbrunk@google.com> | 2013-01-11 17:52:36 -0800 |
commit | 405feeac6565e52882f05dca46097db57b9b1133 (patch) | |
tree | c487c3f0eb46e28bdcdf4a85b1b70e8e126c90cf /res/values/iconbutton_styles.xml | |
parent | dbe227cc4aa7ca09f098f371102096e71519c24a (diff) | |
download | android_packages_apps_Snap-405feeac6565e52882f05dca46097db57b9b1133.tar.gz android_packages_apps_Snap-405feeac6565e52882f05dca46097db57b9b1133.tar.bz2 android_packages_apps_Snap-405feeac6565e52882f05dca46097db57b9b1133.zip |
Refactoring button class. Minor bug fixes.
Bug: 7875246
Bug: 7459118
Change-Id: Ic1099a7ae0feeeb16c8be3035f9726805149666e
Diffstat (limited to 'res/values/iconbutton_styles.xml')
-rw-r--r-- | res/values/iconbutton_styles.xml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/res/values/iconbutton_styles.xml b/res/values/iconbutton_styles.xml new file mode 100644 index 000000000..e33460af2 --- /dev/null +++ b/res/values/iconbutton_styles.xml @@ -0,0 +1,49 @@ +<?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="IconButton"> + <item name="android:layout_width">96dp</item> + <item name="android:layout_height">match_parent</item> + <item name="android:background">@drawable/filtershow_button_background</item> + <item name="android:textColor">@android:color/white</item> + <item name="android:textSize">14dp</item> + <item name="android:scaleType">centerInside</item> + <item name="android:gravity">center</item> + <item name="android:padding">6dp</item> + <item name="android:drawablePadding">6dp</item> + <item name="android:ellipsize">marquee</item> + <item name="android:marqueeRepeatLimit">marquee_forever</item> + <item name="android:singleLine">true</item> + </style> + + <style name="FilterIconButton"> + <item name="android:layout_width">70dp</item> + <item name="android:layout_height">match_parent</item> + <item name="android:background">@drawable/filtershow_button_background</item> + <item name="android:textColor">@android:color/white</item> + <item name="android:textSize">13dp</item> + <item name="android:scaleType">centerInside</item> + <item name="android:gravity">center</item> + <item name="android:paddingLeft">3dp</item> + <item name="android:paddingRight">3dp</item> + <item name="android:paddingTop">6dp</item> + <item name="android:paddingBottom">6dp</item> + <item name="android:ellipsize">marquee</item> + <item name="android:marqueeRepeatLimit">marquee_forever</item> + <item name="android:singleLine">true</item> + </style> +</resources> |