Tag Archives: fragment

Android tab control: the new way

Android SDK now deprecated TabActivity, as you can see the strike through symbol in previous post. Using the new Android SDK, it is preferred to use Fragment instead, and it is also pretty easy.

  • Create a new android project in Eclipse
  • Create two (as many as you like) activities Fragments in Eclipse:
    > Right click the Package Exporer, New > Other, or press Ctrl + N;
    > Select Android layout, name it fragment_tabpage1 and fragment_tabpage2


Read the rest of this entry »

Leave a comment

Posted by on July 29, 2013 in Android, Programming


Tags: , , ,