A RatingBar is an extension of SeekBar and ProgressBar that shows a rating in stars. The user can touch/drag or use arrow keys to set the rating when using the default size RatingBar.
1. In the MainActivity.java file, add the below line to the imports section.
import android.widget.RatingBar;
2. Add the below line to the onCreate method. This will declare a new RatingBar named myRatingBar.
RatingBar myRatingBar;
3. Compile and run!
Next Recommended Article: findViewbyID - How to Find a RatingBar using ID
http://developer.android.com/reference/android/widget/RatingBar.html