TtListLinearLayout
A generic LinearLayout that can present UI elements which are dynamically bound to items. Logic for inflating and binding the layout to the content must be provided by a ttViewProvider.
Dividers, thin lines between list items, can also be enabled by setting ttDivider to true
. It is recommended to use ttDivider instead of assigning a drawable to android:divider
. ttDivider enables more flexibilities like ttDividerInsetStart and ttDividerInsetEnd.
Note:: Do not mix using ttDivider and android:divider
.
Parameters
The type used to populate the items in the LinearLayout.
The display context.
The attribute set provided in the layout XML file.
Properties
The items used to populate each element in the view.
The color of the divider. A divider is a thin line drawn between list items while ttDivider is true
.
The end inset of the divider. A divider is a thin line drawn between list items while ttDivider is true
.
The start inset of the divider. A divider is a thin line drawn between list items while ttDivider is true
.
The thickness of the divider. A divider is a thin line drawn between list items while ttDivider is true
.
Draws the divider below the last item in the list or not. A divider is a thin line drawn between list items while ttDivider is true
.
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.
The ViewProvider that is used to create views for the items.