How can I set the star color of the ratingbar?

后端 未结 10 1689
夕颜
夕颜 2021-02-12 19:54

How can I set the star color of the ratingbar? I want yellow stars.

10条回答
  •  感情败类
    2021-02-12 20:27

    This worked for me:

        Drawable drawable = ratingBar.getProgressDrawable();
        drawable.setColorFilter(Color.parseColor("#FFFDEC00"), PorterDuff.Mode.SRC_ATOP);
    

提交回复
热议问题