AppCompatToggleButton

public class AppCompatToggleButton
extends ToggleButton

java.lang.Object
   ↳ 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

Inherited constants

Inherited fields

Public constructors

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

Inherited methods

Public constructors

AppCompatToggleButton

public AppCompatToggleButton (Context context)

Parameters
context Context

AppCompatToggleButton

public AppCompatToggleButton (Context context,
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

AppCompatToggleButton

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

Parameters
context Context

attrs AttributeSet

defStyleAttr int