Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6139237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:57:51+00:00 2026-05-23T17:57:51+00:00

I’m currently trying to implements a greendroid ActionBar that have a ActivityGroup below it.

  • 0

I’m currently trying to implements a greendroid ActionBar that have a ActivityGroup below it. When the user clicks a button of the actionBar, it will switch to one activity of the groupActivity. I’ve searched a lot, but I just found some tutos about TabBars and it is not the same, as I am not implement a TabBar so I cant just set the groupActivity when I init the tababr. ActionBar is working with methods called when a button is pushed.

In other words : how to simply manage an ActivityGroup without having a TabBar? And how to print the current Activity below the ActionBar ?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:57:53+00:00Added an answer on May 23, 2026 at 5:57 pm

    The ActivityGroup will always be your main activity. So in the onCreate of the ActivityGroup you can build your tabs (see: http://developer.android.com/guide/topics/ui/actionbar.html#Tabs). 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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I'm trying to create an if statement in PHP that prevents a single post
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to loop through a bunch of documents I have to put
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.