如何设置评分栏的星形颜色? [英] How can I set the star color of the ratingbar?
本文介绍了如何设置评分栏的星形颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何设置评分栏的星形颜色?
How can I set the star color of the ratingbar? I want yellow stars.
推荐答案
这对我有用:
Drawable drawable = ratingBar.getProgressDrawable();
drawable.setColorFilter(Color.parseColor("#FFFDEC00"), PorterDuff.Mode.SRC_ATOP);
这篇关于如何设置评分栏的星形颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文