TtTabBar
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.
There are 3 types of tabs that can be defined to be shown in this control:
Tabs can be configured to have a fixed or a flexible width.
All theme attributes used by this control are declared in com.tomtom.tools.android.core.theme
. To use this control, it is mandatory to define these attribute values.
Parameters
The display context.
The attribute set provided in the layout XML file.
The default style attribute set. Use 0 to not look for defaults.
Constructors
Types
An interface for listeners that wish to receive a callback when ttSelectedTabIndex changes.
Properties
The index of the current selected tab. Set to NO_SELECTION_INDEX to have no tab selected. If the index is invalid the tab indicator will be removed and no tab selected.
Functions
Registers a listener that will be called whenever ttSelectedTabIndex changes. If the listener is already registered, nothing happens.
Unregisters a listener. If the listener was not registered, nothing is unregistered.
Inherited functions
Extensions
An inverse binding adapter that adds support for two-way data binding for TtTabBar.ttSelectedTabIndex.
A binding adapter that adds support for two-way data binding for TtTabBar.ttSelectedTabIndex.