android-theme

Unable to change Appcompat theme from light to holo dark

僤鯓⒐⒋嵵緔 提交于 2019-11-30 01:46:04
问题 I am trying to change the theme of my app completely, This is what I modified & tried : styles.xml in values folder is <resources> <!-- Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on newer devices. --> <style name="AppBaseTheme" parent="android:Theme.Holo"> <!-- Theme customizations available in newer API levels can go in res/values-vXX/styles.xml, while customizations related to backward-compatibility can go here. -->

How to Customize AppCompat Material Button Style?

久未见 提交于 2019-11-30 01:44:47
问题 I am using the AppCompat theme and I want set the minHeight attribute on my buttons: <style name="Theme.MyTheme" parent="Theme.AppCompat"> <item name="android:buttonStyle">@style/MyButtonStyle</item> </style> <style name="MyButtonStyle" parent="...?"> <item name="android:minHeight">60dp</item> </style> However, there is no Widget.AppCompat.Button style to set as the parent for MyButtonStyle . If I use android:Widget.Button , then all my buttons look like the old crappy style. I tried various

No style ViewPagerIndicator in combination with SherlockActionBar

帅比萌擦擦* 提交于 2019-11-29 23:01:57
I'm trying to implement the ViewPagerIndicator with SherlockActionBar. It works: I can slide the fragments, but the style doesn't work! It looks like this: related topic: https://github.com/JakeWharton/Android-ViewPagerIndicator/issues/66 I know what's going wrong: In the sample of VPI, the style of a page is set in AndroidManifest.xml by (for example) <activity android:name=".SampleTabsDefault" android:theme="@style/Theme.PageIndicatorDefaults"> </activity> But when I add that android:theme element to my own Manifest.xml I get the following exception: 03-16 11:06:24.400: E/AndroidRuntime(483)

use holo theme on Android < 4.0

别说谁变了你拦得住时间么 提交于 2019-11-29 20:28:08
I'm developing an app for Android 2.2 and higher. I use the great ActionBarSherlock (thank you, Jake Wharton !!) to use the action bar on pre-ICS devices. While the actionbar looks great, all other gui elements have the look of the default theme of the device (in my case HTC Sense 3). Is there a possibility to style my (>= Android 2.2) app on all android devices with the Holo.Dark.Theme? I compile my app with Android 4.0.3, the minSDK version is 8. Enjoy HoloEverywhere, that's the whole purpose of the project! (Edit) new adress: https://github.com/Prototik/HoloEverywhere No. That would require

How to make Beautiful & Stylish apps like Timely

不羁岁月 提交于 2019-11-29 19:01:34
A Quote from Google in terms of Designing, and some example of apps: Based on what Google said in http://developer.android.com/ within design section, a developer should consider three goals: Enchant me Simplify my life Make me amazing Which BTW we (Developers) are aware of. By looking at many successful apps on play store, you can see that they are designed by following Google design guidelines and are pretty much using the same components and theming and styles that google used in their own apps. Many people do enjoy these kind of designs and also these android standards in terms of themes

Custom background for activatedBackgroundIndicator on ActionBarSherlock doesn't work

丶灬走出姿态 提交于 2019-11-29 17:36:01
问题 I'm using ActionBarSherlock and I'm trying to customize the activatedBackgroundIndicator attribute for the row background. If I use the latest android sdk, without the ActionBarSherlock , I'm able to customize the background creating the following style on res/values/style.xml and defining it on AndroidManifest.xml as android:theme="@style/Theme.Custom" : <?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.Custom" parent="android:Theme.Holo.Light.DarkActionBar"> <item name=

Customizing ActionBar Tabs on Android 4

谁都会走 提交于 2019-11-29 17:00:54
问题 I'm trying to customize Tabs on my ActionBar. I just want to align tabs to phone screen and make it stretchable for various screens. But all I get is this: The code I use for the theme is this: <?xml version="1.0" encoding="utf-8"?> <resources> <style name="MyTheme" parent="@android:style/Theme.Holo.Light"> <item name="android:actionBarTabTextStyle">@style/MyActionBarTabTextStyle</item> </style> <style name="MyActionBarTabTextStyle" parent="@android:style/Widget.Holo.Light.Tab"> <item name=

Custom AppCompat Theme not changing Overflow icon on older devices

半城伤御伤魂 提交于 2019-11-29 16:57:46
Recently I decided to change the Action Overflow Icon on my app. I got it working on Lollipop devices, but it isn't working on my Ice Cream Sandwich and Kitkat device. Note: on both the devices that it does not work on, the action overflow icon has 3 rounded dots, so the theme is changing it to the Material version....just not my version. My issue is that I cannot get this to work on older devices, but it works on Lollipop. Before, I would have had to create separate themes for each version, but now that is not needed. Only one theme is recommended. Code <resources> <!-- Base application theme

getColorStateList has been deprecated

随声附和 提交于 2019-11-29 16:20:28
问题 I'm having a problem here. I've just updated from sdk 22 to 23, and the previous version of "getColorStateList()" has been deprecated. My code was like this seekBar.setProgressTintList(getResources().getColorStateList(R.color.bar_green)); valorslide.setTextColor(getResources().getColorStateList(R.color.text_green)); The older "getColorStateList" was getColorStateList(int id) And new one is getColorStateList(int id, Resources.Theme theme) How do I use the Theme variable? Thanks in advance 回答1:

Android textAllCaps in Theme

﹥>﹥吖頭↗ 提交于 2019-11-29 14:01:03
问题 I have a theme where on wanted all textviews on activities to be capitalized. So I set textAllCaps in a style and then applied it to textViewStyle in my theme like the below <style name="Widget.Apex.TextView" parent="android:Widget.TextView"> <item name="android:textAppearance">?android:attr/textAppearanceSmall</item> <item name="android:textAllCaps">true</item> </style> <style name="MyTheme" parent="@android:style/Theme.Holo"> <item name="android:textViewStyle">@style/Widget.Apex.TextView<