Android TutorialsNo Comments

523 views.

You must be familiar with Rating Start Bar that we see on websites that rate Movies, Music and Products or for Feedbacks. These are 5 hollow stars that gets filled when users selects them to set a rating from 1-5 or even odd rankings like 0.5, 1.5, 4.5 and so on. We have this implementation in Android Programming too.

RatingBar in Android is a extension of SeekBar and ProgressBar. User can touch/drag or use arrow keys to set the rating when using the default size RatingBar.

In the Graphical Layout section under Format Widgets tab you would see the RatingBar : Five Starts with the 1st one darker (as selected), drag it to your layout.xml file.

Java Activity File

src/RatingBarExample.java

 

Be the first to post a comment.

Add a comment