TtNavigationBar
A view that shows a navigation bar view.
By default, it shows a back button. Next to the back button is either a title or a number of breadcrumbs.
The breadcrumbs reflect the current back stack and allows clicking on the items in order to navigate back through the back stack.
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.
NOTE: When the customer wants to use the navigation bar component, the ID of this component must be defined as R.id.tt_navigationbar
or it shouldn't be specified at all.
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
Properties
The LifecycleOwner of the TtNavigationBar. Since ttBreadcrumbs can be updated through LiveData, it is required to have a LifecycleOwner in order to observe the content data changes.
Called when the back button has been clicked.
Called when a breadcrumb has been clicked.
A list of TtBreadcrumbs that should be shown within the navigation bar, if ttShowBreadcrumbs is true
.
Whether the navigation bar should be presented in a more compact form.
Whether the back button should be shown.
Whether breadcrumbs should be shown or only a title. When this is set to true
, breadcrumbs are shown within the navigation bar. Otherwise ttTitle will be shown.