Android Greendroid ActionBar using ActivityGroup?

The ActivityGroup will always be your main activity. So in the onCreate of the ActivityGroup you can build your tabs (see: developer.android.com/guide/topics/ui/ac... ). Make sure to add an ActionBar.

TabListener to your tabs. Then, in the onTabSelected you can put the code to switch between your activities.

The ActivityGroup will always be your main activity. So in the onCreate of the ActivityGroup you can build your tabs (see: developer.android.com/guide/topics/ui/ac...). Make sure to add an ActionBar.

TabListener to your tabs. Then, in the onTabSelected you can put the code to switch between your activities. For example: public void onTabSelected(Tab tab, FragmentTransaction ft) { // assumed the tabs are created with a tag and that you defined the // tablistener inline, so you have access to the ActivityGroup Window window = MyActivityGroup.this.

GetLocalActivityManager(). StartActivity(tab.getTag(), intent); final View view = window.getDecorView(); runOnUiThread(new Runnable() { public void run() { setContentView(view); } }); } Hope this helps for the tabs in the ActionBar. To show the user the active Activity, of course you have the tabs.

Otherwise, you could also set the title of the ActivityGroup using getParent() in the child Activity, like: Activity.getParent(). SetTitle("child Activity"). Or you could just do something in the child Activity to display something like a title.

Thanks buddy! But with the time I managed it an other way : I used an GreenDroid ActionBar in each of my Activities, it was a little bit repetitive as I had to put the same code in almost every activity I needed, but it works ok. Thank you!

– Ptitfilou Jul 15 at 13:27.

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