Suggest App Bar View
Base view class for displaying a single suggestion or action page within an expanded AppBar.
This class extends AppBarView and is responsible for inflating and managing its own layout, including adapting its appearance (such as colors and drawables) based on the current theme (light or dark).
The view is composed of the following configurable components:
A title, set via setTitle.
An optional close button in the top-right corner, with its click listener set by setCloseClickListener.
One or more action buttons at the bottom, configured using setButtonModules.
The data and behavior for this view are provided by an associated SuggestAppBarModel (or subclass), which is set via setModel.
Parameters
The context in which the view is running, providing access to resources, themes, etc.
The attribute set from XML used to inflate the view, or null if created programmatically.
See also
Inheritors
Functions
Retrieves the list of buttons currently displayed in this view. This list contains Button
instances that were generated based on the ButtonListModel provided via setButtonModules.
Configures and displays a list of buttons in the bottom layout of this view. This method clears any existing buttons, then generates and adds new buttons based on the provided ButtonListModel. The appearance of the buttons (style, max width) is dynamically adjusted based on the current theme (light/dark) and the number of buttons.
Sets a click listener for the close button. If the listener is null, the close button will be hidden. Otherwise, it will be visible. When the close button is clicked, the provided listener's onClick
method will be invoked.
Sets the data model for this view. The model contains the data and logic that this view will display and interact with.