Android TabbedBar index #12790
Answered
by
jquick-axway
caspahouzer
asked this question in
Q&A
-
I have a TabbedBar with no index set. On iOS, it is shown correctly, on Android the first label is selected in frontend. How can I avoid that? |
Beta Was this translation helpful? Give feedback.
Answered by
jquick-axway
May 10, 2021
Replies: 1 comment 1 reply
-
You can't. On Android, a tab must always be selected. If you don't pick a tab, then it will select the 1st tab. In Titanium 10.0.0, you can use the new |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
caspahouzer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can't. On Android, a tab must always be selected. If you don't pick a tab, then it will select the 1st tab.
In Titanium 10.0.0, you can use the new
Ti.UI.OptionBar
which lets you set the "index" property to-1
to remove the current selection. This will do what you want on both Android and iOS. Have a look at #12510 to see what it looks like.