I have a TabHost holding 5 tabs. As far as I can see, there has to be one tab selected at all times.
I need a way to unselect all my tabs so none will be selected.
If the tabhost is meant by general to have one tab selected at all times, how can I make it appear (UI speaking) as if the tab isn't selected?
This is not possible AFAIK. but yes,you can set the selected tab's color to look like it is unselected and set a blank layout over it by managing a global variable when you make it 'unselected' and setting up normal layout when you want it to be shown normally to user. But this is kind of a trick.
Hope,you get my point!
EDIT :
Suppose you have set
String what="disappear"
somewhere in your code to show it 'unselected',then you can use this function to change color of tab:Main.class:
And in your activity class(which is opened by that selected tab):
FirstActivity.class:
blank.xml: