Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.


open class AppCompatRatingBar : RatingBar
   ↳ 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.


Public constructors
<init>(context: Context!)

<init>(context: Context!, attrs: AttributeSet!)

<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

Protected methods
open Unit
onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)

Public constructors


AppCompatRatingBar(context: Context!)


AppCompatRatingBar(context: Context!, attrs: AttributeSet!)


AppCompatRatingBar(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

Protected methods


protected open fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int): Unit