如何改变开始于android的评价吧图片 [英] How to change starts image of rating bar in android
本文介绍了如何改变开始于android的评价吧图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
怎样才能改变形象开始在android的评价吧?
How can I change the starts image in the android rating bar?
我需要它显示给用户。
或者,如果不可能的 - 如何可以显示在布局特定possition开始第X图像?
Or if not possible - how can show X images of start in a specific possition in the layout?
约阿夫
推荐答案
我希望我understod你的问题 - 你要使用的RatingBar和设置自定义图像
I hope I understod your question - you want to use RatingBar and set custom images?
Android的的RatingBar
已经显示明星,但如果你想自定义图像,然后定义的自定义样式
Android's RatingBar
already displays stars, but if you want custom image then Define a custom style
<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" ... />
这篇关于如何改变开始于android的评价吧图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文