How can I change the starts image in the android rating bar?
I need it to show it to the user.
Or if not possible - how can show X images of start in a specific possition in the layout?
Yoav
How can I change the starts image in the android rating bar?
I need it to show it to the user.
Or if not possible - how can show X images of start in a specific possition in the layout?
Yoav
我希望我能理解您的问题 - 您想使用 RatingBar 并设置自定义图像吗?
AndroidRatingBar
已经显示了星星,但是如果你想要自定义图像然后定义自定义样式
<style name="customRatingBar" parent="@android:style/Widget.RatingBar">
<item name="android:progressDrawable">@drawable/custom_image</item>
<item name="android:indeterminateDrawable">@drawable/custom_image</item>
</style>
然后使用它
<RatingBar style="@style/customRatingBar" ... />