Questions tagged [android-tabhost]

Display a sub list of tab labels representing each page in the parent's tab collection.

Displays a list of tab labels representing each page in the parent's tab collection. The container object for this widget is TabHost. When the user selects a tab, this object sends a message to the parent container, TabHost, to tell it to switch the displayed page. You typically won't use many methods directly on this object. The container TabHost is used to add labels, add the callback handler, and manage callbacks.

Reference: Android Developers Tabhost

2122 questions
0
votes
4 answers

Android Market-like tabbar

What's the best way to implement an Android Market-like tabbar (Apps/Games/Downloads)? It would be great if I could use TabHost, but I believe it doesn't allow this level of customization.
hpique
  • 119,096
  • 131
  • 338
  • 476
0
votes
0 answers

TabHost looses view on intent

I have two tabs for two activities in my TabHost(MainActivityTabs).My problem is when i try to open the second activity from the first one using intents , the TabHost looses its view ,meaning a can't see the two tabs on the bottom and the second…
AlinaBM
  • 243
  • 3
  • 12
0
votes
1 answer

TabWidget custom tabs - unwanted extra margin and text aligment issues

I'm using TabWidget to get tabbed navigation. Each tab tile has icon and text below it. As content of my tab I currently have cardview list. So, tab button layout:
user1209216
  • 7,404
  • 12
  • 60
  • 123
0
votes
0 answers

Tabs with ViewPager in Fragment aren't working

Here, I'm going to create a layout of this type I have done with the NavigationDrawer here with custom ActionBar. And now I need to add Tabs with ViewPager in the first Fragment of the NavigationDrawer. I have done this with the FragmentActivity…
0
votes
0 answers

Change current tab from a button click inside child fragment of the TabHost

I have currently a working project with Navigation drawer and tabbed view using TabHost.I have 3 tabs in which each fragments are loaded as the child view of the tab.My requirement is that,when I click a button inside the child fragment,I need to…
subrussn90
  • 1,142
  • 1
  • 14
  • 27
0
votes
1 answer

TabHost orientation changed

I create an activity contain tabhost with 3 tabs, also define android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"> in the manifest for changed orientation, it helps me to remain…
sagar
  • 1
0
votes
2 answers

Android: Fragment with tabs

How can I put tabs inside of my fragment? I have been struggling with this and would greatly appreciate some help. Currently I am getting this error: Did you forget to call 'public void setup(LocalActivityManager activityGroup)'? However, even when…
0
votes
1 answer

How to change TabHost Title?

I'm trying change the text of Tabs of TabHost to text make it on singleLine=true. To do it I'm trying create TextView and add this attribute singleLine. The problem is I can`t insert this TextView in TabHost. How could I do this ? I'm trying…
FernandoPaiva
  • 4,410
  • 13
  • 59
  • 118
0
votes
1 answer

How to remove lingering menu items from nested fragments in Android?

I'm working on a Android project that has a TabHost with four main tabs which each have a corresponding Fragment. [ Tab 1 ] [ Tab 2 ] [ Tab 3 ] [ Tab 4 ] As an additional feature I would like to add a nested TabHost to [ Tab 3 ]: [ Subtab 1 ] […
Alex Crist
  • 1,059
  • 2
  • 12
  • 22
0
votes
2 answers

Add sub activites with tab activiy

How to add different activities with tab activity, for example i have many tab like home, add music, add video etc, home tab attach with home activity. In home activity there is a button , after clicking this button page will go to another activity,…
0
votes
1 answer

TextView forgets its value after tab switching

I've setup a tabhHost in my program with 3 tabs each with a fragment in its content that contains a textView. I've set a button in app that is supposed to update the content of every tab. However the problem i am now facing is that if i change a tab…
Osama
  • 71
  • 8
0
votes
1 answer

Android - Adding tabs to a Fragment

I am making a Fragment with tabs but I am having a problem that I cannot resolve. When adding the tabs I must set a content with setContent() but I just can set an Activity or a layout and I want to make a transaction between two fragments. I have…
0
votes
1 answer

Android Studio adding a drawable resource to active tab in tabhost

I am trying to add a white triangle to the bottom of tabhost to indicated the open tab like this: I have the white triangle png. Just wondering how I can style tabhost to add an image below the text for active tabs This is the background resource I…
Bill Huang
  • 89
  • 1
  • 10
0
votes
0 answers

How to get checkbox value in the nested Click structure

I have a ListView with CheckBox on it. and i am using Custom Adapter to populate the ListView. And I am binding the checkbox data using viewHolder private static class PlanetArrayAdapter extends ArrayAdapter { private…
user8025
  • 99
  • 1
  • 9
0
votes
1 answer

Tab with ActionBarActivity on Android

I am trying to add Tab control inside an activity which has action bar as well. Here is the reference code MessageViewActivity.java public class MessageViewActivity extends ActionBarActivity { TabHost messageViewTabHost; @Override protected…
CuriousMind
  • 3,143
  • 3
  • 29
  • 54