android-tabhost Questions

5

Solved

I have made an application which has tabs like in HelloTabActivity, there is also space between these tabs, can anyone suggest how to remove this space and also there is a grey line beneath the tab...

4

Solved

Trying to change tabhost text color, in this code I can change tabhost background color(not text color) tabHost.setOnTabChangedListener(new OnTabChangeListener() { @Override public void onTabCh...
Ridings asked 20/3, 2014 at 12:28

5

It appears that TabActivity is now deprecated, we need to use Fragments. I tried using a standard Activity but couldn't call getTabHost. So it appears i have to use Fragments. But i am a little c...
Leverrier asked 12/9, 2012 at 6:32

4

I need sample code to create TabHost in android. can anyone help me.
Viceregent asked 5/6, 2009 at 4:16

5

Solved

This code below shows part of activity where the fragment is added. FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); ft.replace(R.id.fragment_container, srkt_frag); ft...

9

Solved

I am using the TabHost in my application, I am using four Tabs in my application and I want to use the different Images in the TabHost when the Particular Tab is been Selected and not selected. I n...
Sweet asked 22/12, 2010 at 9:19

5

Solved

I'm trying to implement this application. At the moment I have designed tabs on it and since I have more than 7 tabs it looks too congested. How can I design it so that the tabwidget is scrollable ...
Selfinsurance asked 14/3, 2012 at 14:27

3

Solved

I'm trying to use the new TabLayout in the android design library to create app bar with icons only. like this: how can I do it using the new TabLayout Android Design Library. is there a simpl...

3

I currently have a TabHost containing 4 tabs. On a few of the fragments we have a number of EditText views within the layout. We have noticed that when you attempt to type into any of the EditText...
Inappreciative asked 27/3, 2013 at 20:49

3

I am having an issue getting the view to change on a tabhost - when I select a tab the content stays blank. From what I can tell, onCreateView is not being called on the child Fragments. onMenuCre...

5

Solved

I have 3 classes in my example: Class A, the main activity. Class A calls a startActivityForResult: Intent intent = new Intent(this, ClassB.class); startActivityForResult(intent, "STRING"); Clas...
Groark asked 23/3, 2010 at 2:32

1

Solved

In my app I am using navigation drawer from this tutorial http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/ Now I am trying to add tabhost with fragment,but its not...

2

Solved

I have a TabHost Inside a navigationDrawer and I'm facing this weird problem which occurs when ever i go from TabHost which exist as a navigation drawer item to another navigation drawer item and g...
Gomez asked 18/6, 2015 at 10:31

2

Solved

I am creating a five tabs that contains one fragment each. I am using ListView in the first tab and in the ListView OnItemClickListener I want to replace from the first Tab Fragment to second tab F...

4

Solved

How can the font size of the tabs be changed? I extend TabActivity for the tabs.
Cymograph asked 26/4, 2011 at 10:24

4

Following situation: I have TabActivity with e.g. three tabs, TabA, TabB, TabC. There are a button in activity (Act_C_1) of TabC. So if the user clicks on that button, another activity (Act_C_2) s...
Nagging asked 6/10, 2010 at 10:47

1

Solved

I'm using a FragmentTabHost with multiple tabs (constructed as shown here). However, I cannot randomly address my tabs with getFragmentByTag (which returns in that case null) unless the addressed T...
Floeter asked 11/8, 2013 at 7:39

2

Few days ago I implemented TabHostFramgent in a Fragment with a NavigationDrawer, and I faced with a problem that is the following error : java.lang.IllegalStateException: No tab known fo...

3

I have a basic question. In many tabhost examples, we find tabs with image and text. In my case, I would like to only display a text, but the issue is that my text is horizontally centered but not...
Claudine asked 18/9, 2011 at 12:12

5

Solved

I want to create custom buttons to use in a TabHost. I haven been trying to just use the same image resource (png), but have the colorfilter change depending on the state. So I made this bit to ser...
Regina asked 16/5, 2011 at 14:4

4

Solved

In my application, I use an Activity which holds one Fragment with FragmentTabHost and hence all its tabs are nested Fragments. Inside an Activity which holds a Fragment with its nested Fragment, ...

1

Solved

I try to implement the scrollable tabs where each tab has it's size adjusted to it's content size. I tried two approaches: ActionBar and TabHost. In both cases I was able to adjust tabs sizes. T...

3

I am implementing tabhost using FragmentActivity , under the first tab i load a welcome fragment that contains a Viewpager and CirclePageIndIcator, I need to load 4 views in side that WelcomeFragme...

1

Solved

I'm trying to use TabHost on my app, and I simply dragged it to my activity using the design, but when I run it, it just won't appear, just get the white screen, does anyone knows why? <TabHo...
Gesture asked 16/1, 2015 at 5:48

2

Solved

I know the solution on how to change it programically however I would like to set the text in XML. How do you do that? I have looked here: http://developer.android.com/reference/android/widget/TabH...
Gypsophila asked 13/6, 2013 at 13:11

© 2022 - 2024 — McMap. All rights reserved.