ViewPagerAppBarView

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

A base view class that extends AppBarView and embeds a ViewPager2 to display multiple swipeable suggestion pages.

Each page within the ViewPager represents a distinct suggestion, which can be individually configured and dismissed. The view’s components—including the ViewPager and its indicator—are managed by the associated ViewPagerAppBarModel.

The background and indicator colors of the ViewPager can be customized via theme attributes to match the app’s appearance.

Parameters

context

The context in which the view is running, providing access to resources, themes, and more.

attributeSet

The set of attributes from XML used to inflate the view, or null if created programmatically.

See also

Inheritors

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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

Updates the resources of the ViewPager and its indicator based on the current theme.