Java android.widget RatingBar fields, constructors, methods, implement or subclass

Example usage for Java android.widget RatingBar fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.widget RatingBar.

The text is from its open source code.

Subclass

android.widget.RatingBar has subclasses.
Click this link to see all its subclasses.

Method

intgetNumStars()
Returns the number of stars shown.
floatgetRating()
Gets the current rating (number of stars filled).
voidsetMax(int max)
voidsetNumStars(final int numStars)
Sets the number of stars to show.
voidsetOnRatingBarChangeListener(OnRatingBarChangeListener listener)
Sets the listener to be called when the rating changes.
voidsetRating(float rating)
Sets the rating (the number of stars filled).
voidsetStepSize(float stepSize)
Sets the step size (granularity) of this rating bar.