Search code examples
androidandroid-actionbaractionbarsherlock

Tabbar without any selected tab


I'm using an android sherlock action bar with 5 tabs. I would like to start that app showing the 5 tabs but without any selected tab (I know it could be confusing for the end user...) Is it possible ? How to do that ?


Solution

  • I have no idea why you want to create something like this but maybe 1 hacky solution...

    Create a custom tab that replaces the selected tab drawable image with the unselected tab drawable image. When you click a tab after that it replaces the theme back to the default tab selected.

    Edit: I found a post explaining this "trick" further.

    'Unselect' a tab in a TabHost