FloatingMenuItemView

class FloatingMenuItemView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : AppCompatImageButton

A custom AppCompatImageButton that represents an item in a floating menu.

This view automatically sets its background based on the current theme (light or dark) using predefined ripple drawables.

Parameters

context

The Context the view is running in, through which it can access the current theme, resources, etc.

attrs

The attributes of the XML tag that is inflating the view. May be null.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null)