5
Hello since I started working with Android development, I have always had a hard time understanding how the part of Themes, styles and libs of support Android, I always have a lot of difficulty for example to stylize a EditText
or a RatingBar
.
For example now little was styling a RatingBar
where I had in my theme the following item:
<style name="CustomActionBarTheme"
parent="Theme.AppCompat">
<item name="android:ratingBarStyle">@style/customRatingBar</item>
<style name="customRatingBar" parent="android:Widget.RatingBar">
<item name="android:progressDrawable">@drawable/ratingbar_full_holo_dark</item>
<item name="android:indeterminateDrawable">@drawable/ratingbar_full_holo_dark</item>
</style>
In API 23 it worked smoothly, but for it to work on smaller APIS I had to put the following code in the style-v11
<style name="CustomActionBarTheme" parent="Theme.AppCompat">
<item name="android:ratingBarStyle">@style/customRatingBar</item>
<item name="ratingBarStyle">@style/customRatingBar</item>
</style>
What I want to understand is, what’s the difference between android
: and without the android:
in the item?
Excellent explanation :)
– Mateus Carvalho