TtListLinearLayout
A generic LinearLayout that can present UI elements which are dynamically added via ViewModels. Custom logic for manipulating the content of the layout can be added by inheriting TtListItemBinder and assigning it to ttContentViewBinder.
By default, TtListItemViewModelBinder is assigned to ttContentViewBinder. It provides the default binding behavior for binders have exactly one data binding variable called viewModel
. For custom behavior, a different TtListItemBinder should be implemented.
Parameters
The type of ViewModel used to populate the items in the LinearLayout.
The display context.
The attribute set provided in the layout XML file.
Constructors
Properties
The maximum number of rows of the view. When provided, if there are more elements in the ttContents only first elements within the number will be displayed. Otherwise all elements are displayed. If this is not set, all elements will be displayed.