Android Tabbed Layout - how to have sub-section links?

Prior to Honeycomb, you'd accomplish something like this by putting each tab's set of activities within an ActivityGroup (see this SO post or this one ). However, this has been deprecated, and it's recommended to use the Fragment class to accomplish something like this. Of course, if you're ok with using deprecated classes, the SO post above should do the trick 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: developer.android.com/reference/android/... Here's another example from google on implementing Fragments & tabs: developer.android.com/resources/samples/... This is a good place to start if you're trying to learn about Fragments.

Prior to Honeycomb, you'd accomplish something like this by putting each tab's set of activities within an ActivityGroup (see this SO post or this one). However, this has been deprecated, and it's recommended to use the Fragment class to accomplish something like this. Of course, if you're ok with using deprecated classes, the SO post above should do the trick.

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: developer.android.com/reference/android/... Here's another example from google on implementing Fragments & tabs: developer.android.com/resources/samples/... This is a good place to start if you're trying to learn about Fragments.

This answer seems related. You need both the xmlns set correctly, as Nanne said, as well as your attributes defined in res/style/attrs.xml.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions