AppCompatToggleButton

open class AppCompatToggleButton : ToggleButton
kotlin.Any
   ↳ android.view.View
   ↳ android.widget.TextView
   ↳ android.widget.Button
   ↳ android.widget.CompoundButton
   ↳ android.widget.ToggleButton
   ↳ androidx.appcompat.widget.AppCompatToggleButton

A ToggleButton which supports compatible features on older versions of the platform, including:

This will automatically be used when you use ToggleButton in your layouts. You should only need to manually use this class when writing custom views.

Summary

Public constructors

<init>(context: Context!)

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

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

Public constructors

<init>

AppCompatToggleButton(context: Context!)

<init>

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

<init>

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