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 8072619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:04:41+00:00 2026-06-05T14:04:41+00:00

I have been browsing the web for a while now and looking at different

  • 0

I have been browsing the web for a while now and looking at different examples of how to implement a tab bar.

The problem I am having is deciding the correct approach to creating this feature. The option that seems most used is to have one main activity called MainActivity or something and using fragments as the tabs. This is all well and good and I have created an application like this fine.

The problem I am having is I am in two minds as to whether this is the right way to go about it as coming from an iOS development background it just doesn’t seem right due to these tabs having different functions.

Any pointers would be great.

EDIT I have also looked into ActionBarSherlock but couldn’t get to use it in a project as it kept coming up with errors and I couldn’t find a thread that sorted the problems I was having out.

Disco

  • 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-06-05T14:04:43+00:00Added an answer on June 5, 2026 at 2:04 pm

    You should be using fragments, yes. There is an example of how to do it here: http://developer.android.com/guide/topics/ui/actionbar.html#Tabs

    This “only” works with Tabs that are part of your Actionbar, though. Shouldn’t be too much of a problem, because they usually should be part of your Actionbar. You can also manually move the tabs if you’re not content with their location, or roll your own buttons that look like tabs.

    Keep in mind that tabs in Android aren’t quite the same beast as the tab bar is in iOS. They look similar and behave similar, but there are subtle conceptual differences in how they are supposed to be used. Don’t use them for your basic app navigation, but rather for switching between similar “things”.

    If you want to employ this on device pre-3.0 though, you will have to use ActionBarSherlock. It does work fine and we’re using it in several projects, so if you’re having problems integrating it I suggest creating a new question for that, I’ll be happy to help.

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

Sidebar

Related Questions

I have been browsing the apple docs and stackoverflow for a while now, but
I have been browsing the web looking for caching information but cannot find anything
Of late I have been diving deep into web application security. While browsing I
I have been browsing around on the internet and researching effective sitemap web pages.
I've been doing web development for a few months now and keep having this
I have been browsing the web lately to find a good Web UI kit.
I have been browsing these iOS Cocoa controls and looking to test out a
I have been browsing SO and various other sites to find out whether this
Have been looking on some tutorials for drawing canvas using SurfaceView, but the only
I have been tasked with refactoring some components that used xmlbeans to now make

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.