AppBarView

abstract class AppBarView @JvmOverloads constructor(@NotNull context: Context, @Nullable attrs: AttributeSet? = null) : FrameLayout

Abstract class for use as the custom view designed to show contextual suggestions or actions in an expanded AppBar temporarily replacing the AppBar's expanded title and subtitle.

This class provides a foundation for different types of AppBar suggestion view implementations. Its subclasses are responsible for implementing the inflate and updateResource methods to define their specific layout and resource handling.

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.

Inheritors

Constructors

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

Functions

Link copied to clipboard
abstract fun inflate()
Link copied to clipboard
abstract fun updateResource(context: Context)