Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set the star color of the ratingbar?

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

like image 613
Finn Su Avatar asked Aug 02 '13 03:08

Finn Su


2 Answers

The simpliest way:

android:progressTint="@color/color"

Smooth and shiny.

like image 61
MiguelCatalan Avatar answered Oct 15 '22 20:10

MiguelCatalan


This worked for me:

    Drawable drawable = ratingBar.getProgressDrawable();
    drawable.setColorFilter(Color.parseColor("#FFFDEC00"), PorterDuff.Mode.SRC_ATOP);
like image 22
Chad Bingham Avatar answered Oct 15 '22 20:10

Chad Bingham