In the XML files on Android Studio, I created a theme for my app and wondering how to change all the button background colors in my theme in API 10? Here's what I got so far:
//Colors for certain widgets
<color name="textView_Color">#505050</color>
<color name="Button_Color">#878787</color>
<color name="Background_Color">#ffffff</color>
//Where I assign the colors
<style name="mainTheme" parent="android:Theme.NoTitleBar">
<item name="android:textColor">@color/textView_Color</item>
<item name="android: ">@color/Button_Color</item>
<item name="android:windowBackground">@color/Background_Color</item>
</style>
使用appcompat支持库并使用主题支持库
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.