Special TabHost that allows the use of Fragment objects for its tab content. When placing this in a view hierarchy, after inflating the hierarchy you must call setup(Context, FragmentManager, int) to complete the initialization of the tab host.
Questions tagged [fragment-tab-host]
292 questions
-1
votes
1 answer
Fragment Tabs not Appearing
In my program i am showing multilevel Listview, but whenever i am calling another Activity then Fragment Tabs are not appearing.
I am using this great tutorial:…

Sonali
- 783
- 4
- 11
- 26
-2
votes
2 answers
Passing data by using bundle between tablayout
I am using Bundle to passing data from my First TabFragment but it prompts out with the NullPointerException. Error is occur when getArguments() in list_fragments2 in second tab
MainActivity Fragment
list_fragment2 fragment = new…

AnthonyTang
- 89
- 1
- 1
- 9
-2
votes
1 answer
In FragmentTabhost, the fragment can`t destory which called by beginTransaction().replace
My fragmentTabhost include 4 fragments(FragmentA,FragmentB,FragmentC,FragmentD) in the FragmentTabhost .
In FragmentA, I use the code:
getSupportFragmentManager().beginTransaction().replace(R.id.content_frame,…

Kim
- 1
- 2
-2
votes
1 answer
TabHost not working upon multiple Tab switches
i have made a Master/Detail View which contains a TabHost in the Detailview.
i have to populate a list of tabs, and every tab has a listview as its content.
Now when i change my Item to display, after the third change or so, no more tab content is…

gangfish
- 138
- 16
-2
votes
3 answers
Unable to use Toolbar with an Activity containing Google Maps Api v2
I am developing an application where i need to have a toolbar at the top with bottom tabs and display Google Map in one of the tabs. I an using FragmentTabHost for the bottom Tabs and using Google Maps Api v2 for Google Maps with some custom image…

Orton
- 151
- 1
- 8
-2
votes
1 answer
How to make the content of your fragment tabhost occupy full width?
I have placed ImageView, fragment tabhost and an ImageButton on a bar I created, I want the content of the tabhost to occupy the full width however all I am getting is as shown in the image. I searched high and low but couldn't find a solution!
The…

Prashant Khanal
- 249
- 2
- 11
-2
votes
1 answer
How to change the body of tab onClick of same tab in fragmentTabhost
What I am doing:
I have a fragmentabhost in a fragment that has 3-tabs in it.
On click of tabs i am able to change the fragments dynamically
On click of first tab i am displaying RatingAscending.class
What I am trying to do:
Now Onclick of the…

Devrath
- 42,072
- 54
- 195
- 297