style
<style name="CradRatingBar" parent="Theme.AppCompat"> <item name="colorControlNormal">#666666</item> <item name="colorControlActivated">#f68d4f</item> </style>xml
<RatingBar style="@style/Widget.AppCompat.RatingBar.Small" android:layout_width="wrap_content" android:layout_height="wrap_content" android:isIndicator="true" android:numStars="5" android:rating="0.5" android:stepSize="0.5" android:theme="@style/RatingBar"/>
RatingBar 在xml里,修改星星颜色
最新推荐文章于 2021-05-27 04:46:36 发布