ShadowsMaterialButtonToggleGroup

class ShadowsMaterialButtonToggleGroup @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = com.google.android.material.R.attr.materialButtonToggleGroupStyle) : MaterialButtonToggleGroup, ShadowsViewGroup

A custom MaterialButtonToggleGroup that implements ShadowsViewGroup.

Apart from the additional handling of the library's shadow properties and draw operations, this group behaves just like its base class.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = com.google.android.material.R.attr.materialButtonToggleGroupStyle)

Properties

Link copied to clipboard

A single color value to set on all children during initialization as their color compat value.

Link copied to clipboard
open override var childShadowsPlane: ShadowPlane

The ShadowPlane to set on all child Views as they're added during initialization.

Link copied to clipboard
open override var clipAllChildShadows: Boolean

If true, sets clipOutlineShadow=true on all child Views as they're added during initialization.

Link copied to clipboard

If true, sets forceOutlineShadowColorCompat=true on all child Views during initialization.

Link copied to clipboard

Determines whether the group will take over the draw operations for Inline shadows.

Functions

Link copied to clipboard
Link copied to clipboard
open override fun onViewAdded(child: View)