How to adjust the Tab widget - android

I am developing an application in android for which i have to use nine tabs in the main layout.
But all tabs in one view doesn't look nice.So i decided to show five tabs in one view and other four on click of one of the tabs.But it is not working when i click the fifth tab to show the other four tabs can you suggest me to set all tabs in my application in a better gui.
Thanx in Advance

Related

Switching between tabs hosted inside a TabActivity, without finishing child activites

I have a three tab layout which contains three forms.
I want to switch between tabs and when I move to tab two from tab one after filling the form, and when I navigate back to tab one, I want to display the previously filled content.
How can I achieve this?
Any suggestions.
Thank you.

How to create 2 nested tabs within a tab in android?

I have 3 tabs basically and on clicking one of those I want to display 2 more tabs which is like nested tabs. How can I achieve this in android? I just added 3 tabs in an activity and in one tab activity I again added 2 more tabs. But this is giving me error.
Please anybody have any other idea share it and help me out,thanks in advance.
That's not a good idea. How users are supposed to know which tabs would respond to a swipe action? Multi-level tabs are confusing. You should use drop down navigation or a navigation drawer instead of top-level tabs.

Add/Remove Tab and its content from tabhost

I have nine tabs(say 0 to 8), displaying only five tabs on screen.
The five tabs will be 0 to 3 of those nine tabs and fifth tab will be MORE Tab.
MORE tab will show Activity with GridView showing Image+Title of remaining nine tabs(say 4 to 8).
Now on click of any item(Image+Title) in GridView will replace the MORE Tab Image+Title and its content/activity with its respective activity.
I am able to replace the tab indicators(Image+Title) but struggling on replace its respective content/activity.
As on other similar thread they had suggested to use clearAllTabs and add/recreate require tabs again. But i feel clearing all tabs just to replace one tab is heavy.
I am using the TabActivity with Intents. As i know TabActivity is deprecated by its old app initially it had only 5 tabs but now requirement is to add few more tabs.
Need your help to implement this. If it not possible with TabActivity, then switching to fragment tabs does it help me?
I trying to implemtent this Image
I would recommend fragments for sure. I've used TabHost in the past and it was very problematic.
You can simply have Button at the top that control the visibility of the fragment below. With this way, you'll even be able to add transitions.
This link give a little more information on that topic. Separate Back Stack for each tab in Android using Fragments

How to show small tab interfaces in ordinary activities (non-tabactivity)?

I wish to show tabs in an activity such that one of the tabs will be a comment form and the other tab will be a list of comments submitted by other users of the application.
I do not wish to implement it as a TabActivity - where the whole screen is occupied by the view, with the tabs at the top. I wish to show this tab interface below a image both of which will be in a <LinearLayout android:orientation="vertical">.
How do I accomplish this?
You can give a layout to TabActivity where you have LinearLayout on the top as you desired and then the tabs

Tab layout problem

![enter image description here][1]
I want to make a tab layout application, in which there are four tabs. Now I would like to set multiple layouts in one tab.
For example, the example below of a tab layout they make four tabs,
Now in the first tab (Timeline) make a button that give next page link,
press next button and other layout display in the first tab (timeline tab). So what thing do I need to do?
You have to use the ActivityGroup. Read Android tabactivity nested activities, and you will get what you want.

Categories

Resources