SuggestAppBarItemView

@RequiresApi(value = 23)
open class SuggestAppBarItemView @JvmOverloads constructor(context: Context, attributeSet: AttributeSet? = null) : SuggestAppBarView

A view representing a single suggestion or action page within a ViewPager2, extending SuggestAppBarView. This class provides functionality for handling title, close button, and bottom layout elements. It also manages resource updates based on the current theme (light or dark) and applies font scaling for accessibility.

Parameters

context

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

attributeSet

The attributes of the XML tag that is inflating the view.

Inheritors

Constructors

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

Functions

Link copied to clipboard
open override fun getRootView(): ViewGroup?
Link copied to clipboard
open override fun inflate()

Inflates the layout using the sesl_app_bar_suggest.xml resource and adds it as a child view.

Link copied to clipboard
fun setRootView(viewGroup: ViewGroup?)
Link copied to clipboard
fun updateButtons(buttons: List<Button>)

Updates the text color and font scale of the given buttons.

Link copied to clipboard
open override fun updateResource(context: Context)