Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Prior to Honeycomb, you'd accomplish something like this by putting each tab's set of activities within an ActivityGroup (see <a href="https://stackoverflow.com/questions/1306689/launching-activities-within-a-tab-in-android">this SO post</a> or <a href="https://stackoverflow.com/questions/3265265/android-using-activitygroup-to-embed-activities">this one</a>). However, this has been deprecated, and it's recommended to use the <a href="http://developer.android.com/reference/android/app/Fragment.html" rel="nofollow noreferrer">Fragment</a> class to accomplish something like this. Of course, if you're ok with using deprecated classes, the SO post above should do the trick. </p> <p>Basically, you'll need to create an activity for each of the tabs (you might try extending FragmentActivity). Then, within each of these activities, their content will be represented as Fragments. It's up to you to do the management properly for them. Here's some sample code from Google on the TabActivity class that I used to get started: <a href="http://developer.android.com/reference/android/app/TabActivity.html" rel="nofollow noreferrer">http://developer.android.com/reference/android/app/TabActivity.html</a></p> <p>Here's another example from google on implementing Fragments &amp; tabs: <a href="http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabs.html" rel="nofollow noreferrer">http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabs.html</a></p> <p><a href="http://developer.android.com/guide/topics/fundamentals/fragments.html" rel="nofollow noreferrer">This</a> is a good place to start if you're trying to learn about Fragments.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload