AppCompatRatingBar

public class AppCompatRatingBar
extends RatingBar

java.lang.Object
   ↳ android.view.View
     ↳ android.widget.ProgressBar
       ↳ android.widget.AbsSeekBar
         ↳ android.widget.RatingBar
           ↳ androidx.appcompat.widget.AppCompatRatingBar


A RatingBar which supports compatible features on older versions of the platform.

This will automatically be used when you use RatingBar in your layouts and the top-level activity / dialog is provided by appcompat. You should only need to manually use this class when writing custom views.

Summary

Inherited constants

Inherited fields

Public constructors

AppCompatRatingBar(Context context)
AppCompatRatingBar(Context context, AttributeSet attrs)
AppCompatRatingBar(Context context, AttributeSet attrs, int defStyleAttr)

Protected methods

void onMeasure(int widthMeasureSpec, int heightMeasureSpec)

Inherited methods

Public constructors

AppCompatRatingBar

public AppCompatRatingBar (Context context)

Parameters
context Context

AppCompatRatingBar

public AppCompatRatingBar (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

AppCompatRatingBar

public AppCompatRatingBar (Context context, 
                AttributeSet attrs, 
                int defStyleAttr)

Parameters
context Context

attrs AttributeSet

defStyleAttr int

Protected methods

onMeasure

protected void onMeasure (int widthMeasureSpec, 
                int heightMeasureSpec)

Parameters
widthMeasureSpec int

heightMeasureSpec int