I know that it is possible to add MenuItems to the ActionBar using a XML file in /res/menu directory.
I have been looking for an example of how to add Tabs to the ActionBar using a XML without any success.
I only found a way to do this calling: actionbar.newTab() method but I would not like to do this in code…
Do you have any idea?
Thanks.
There is no way to do this, sorry. You can only define tabs in the action bar via Java code.