Skip to content

Android TabbedBar index #12790

Answered by jquick-axway
caspahouzer asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@caspahouzer
Comment options

caspahouzer May 11, 2021
Maintainer Author

Answer selected by caspahouzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants