Package com.tomtom.tools.android.api.uicontrols.list

Types

Link copied to clipboard
interface TtListItemBinder<B : ViewDataBinding, VM>

An interface for binding ViewModels to list item views.

Link copied to clipboard
class TtListItemViewModelBinder<VM> : TtListItemBinder<ViewDataBinding, VM>

The default binder for TtListLinearLayout and TtListTableLayout to bind it with the ViewModel. The default binder has exactly one data binding variable called viewModel. If the binding class does not have it, the view items in TtListLinearLayout or TtListTableLayout can not be populated.

Link copied to clipboard
open class TtListLinearLayout<VM>(context: Context, attrs: AttributeSet?) : LinearLayout

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.

Link copied to clipboard
open class TtListTableLayout<VM>(context: Context, attrs: AttributeSet?) : TableLayout

A generic TableLayout 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.