Hello since I started working with Android development, I've always had a hard time understanding how Android's Themes, Styles, and libs part of Android support works, I always have for example, to stylize a EditText
or a RatingBar
.
For example, I was currently styling a RatingBar
where I had the following item on my theme:
<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 quietly, however for it to work in smaller APIS I had to by the following code in 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 is the difference between android
: and without android:
in the item?