How to create tabs in android from code (TabHost or FragmentTabHost) without XML



I need to add tabs to a layout programmatically, I mean, without XML at all ¿is it possible?


The MainActivity extends ActionBarActivity and the layout (in which I need to put the tabs) is a Fragment


I appreciate any help


No comments:

Post a Comment