File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes using tabs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "using tabs" Watch "using tabs" New topic

using tabs

Aris Doxakis
Ranch Hand

Joined: Dec 05, 2004
Posts: 136

Good morning again,
I had an application that worked with Android 1.6 - 2.3. I am updating it to work with Android 3(Tablets). I had an activity that used Tabs(4 tabs exactly). How can i implement a tabHost using Fragments. My UI is divided in 2 pieces. On the left i have a menu that changes on user choices, and on the right i display each fragment called from the user. Now one of my options open a fragment that has to have 4 tabs in it. How can i implement this??
Dont need to use deprecated code or backward compatibility, because it will work only for tablets version 3 and up.

Thanks in advance.
Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
How about ActionBar ?
ActionBar has facility for Tabs. Try to look into that.
I agree. Here's the link:
subject: using tabs
It's not a secret anymore!