public class


extends OverlayToolbarButton
implements Checkable
   ↳ android.view.View
     ↳ android.widget.ImageView
       ↳ android.widget.ImageButton
         ↳ androidx.appcompat.widget.AppCompatImageButton
Known Direct Subclasses

Class Overview

Sticky button which has a checked state that toggles with user's taps. The "checked" effect is supported when mapsToolbarButtonStyle is referencing a style that's compatible with FioriMaps_ToolbarButton or the app theme is extending FioriTheme.


Inherited Constants
From class android.view.View
Inherited Fields
From class android.view.View
Public Constructors
CheckableOverlayToolbarButton(Context context)
CheckableOverlayToolbarButton(Context context, AttributeSet attrs)
CheckableOverlayToolbarButton(Context context, AttributeSet attrs, int defStyleAttr)
Public Methods
boolean isChecked()
int[] onCreateDrawableState(int extraSpace)
void setChecked(boolean checked)
void toggle()
Inherited Methods
From class
From class androidx.appcompat.widget.AppCompatImageButton
From class android.widget.ImageButton
From class android.widget.ImageView
From class android.view.View
From class java.lang.Object
From interface
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource
From interface android.widget.Checkable
From interface androidx.core.view.TintableBackgroundView
From interface androidx.core.widget.TintableImageSourceView

Public Constructors

public CheckableOverlayToolbarButton (Context context)

public CheckableOverlayToolbarButton (Context context, AttributeSet attrs)

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

Public Methods

public boolean isChecked ()

public int[] onCreateDrawableState (int extraSpace)

public void setChecked (boolean checked)

public void toggle ()