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

Types

Link copied to clipboard
open class TtTabBar @JvmOverloads constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : LinearLayout

This control is used for a list of tabs and reacts to clicks on each tab. To know when the selected tab changes, register an OnSelectedTabIndexChangedListener.

Link copied to clipboard
data class TtTabItem(text: StringResolver?, icon: DrawableResolver?)

A class that holds the data of a tab.

Link copied to clipboard
enum TtTabType : Enum<TtTabType>

There are different configurations of tabs. TtTab and TtTabBar use this class to indicate which configuration it is.

Functions

Link copied to clipboard
fun TtTabBar.getTtSelectedTabIndex(): Int?

An inverse binding adapter that adds support for two-way data binding for TtTabBar.ttSelectedTabIndex.

Link copied to clipboard
fun TtTabBar.setSelectedTabIndexChangedListener(listener: InverseBindingListener?)

A binding adapter that adds support for two-way data binding for TtTabBar.ttSelectedTabIndex.