Questions tagged [fragment-tab-host]

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.

292 questions
2
votes
0 answers

FragmentTabHost with DrawerLayout, fragment is not showing after replacing the content

i am using fragmenttabhost with drawer layout (containing settings button). there are 4 tabs in fragmenttabhost. NavigationView in drawer layout that contains 4 buttons. In my activity where fragmenttabhost is placed at bottom, and above is…
Lakhwinder Singh
  • 6,799
  • 4
  • 25
  • 42
2
votes
2 answers

Android: FargmentTabHost - No tab content FrameLayout found for id xxx

I'm trapped in "No tab content FrameLayout found in XXX" error. Please give a help. My code goes follow: MainActivity package com.example.demo; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentTabHost; import…
Lawrence Ching
  • 423
  • 7
  • 16
2
votes
1 answer

Fragment tabhost is not working in Fragment

I am following this turtorial http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/ here in Homefragment i set the fragmenttabhost,the issue is the view of tab is not displaying public class HomeFragment extends Fragment…
Aditya
  • 1,508
  • 1
  • 19
  • 37
2
votes
1 answer

Android - How to reload a content of a FragmentTabHost

So I have a class that extends a Fragment, which in it, I have a FragmentTabHost, my FragmentTabHost consist of 3 Tab, each tab will show a list of item.. Inside each item I can update the item property like its name/ other property. My problem is…
2
votes
2 answers

how to get the content fragment at onTabChanged(String tabTag)

Searched and saw a few posts for the similar question, but no working solution. Post here to see if someone have solved it. Having FragmentTabHost in a fragment, and trying to get current tab's content fragment. in…
lannyf
  • 9,865
  • 12
  • 70
  • 152
2
votes
0 answers

Error (Null Pointer Exception) on adding and deleting tab at runtime in fragmentTabHost

I need to put a browser like module in activity. I am using fragmentTabHost for this. Add button will Add the Tab in fragmentTabHost and and there is Close button to Close the tab from fragmentTabHost. .But It work fine for 3 to 4 time but after…
2
votes
2 answers

TabHost inside a fragment of an activity

I want to create a layout in which upper half is just some area with normal views and lower half is a tab layout . I've seen some examples but they're all how to create tabs at activity level i.e by extending TabHostActivity which covers all the…
2
votes
1 answer

FragmentTabHost tabs transparent when they should be opaque

I recently changed my app from all activities to all fragments. As part of the change I started using fragment tab host which have been acting strangely. For some reason my tabs are transparent and show there content underneath the tab buttons, but…
2
votes
0 answers
2
votes
2 answers

How to add tabhost with navigation drawer?

I am new to android development,I used navigation drawer from this http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/ Now I want to add Tabhost with it..can anyone help me with this? The following is my code I…
parajs dfsb
  • 145
  • 2
  • 4
  • 13
2
votes
1 answer

android - fragmenttabhost not showing inside my fragment

My classes FragmentTabs - the fragment that will hold my FragmentTabHost Its onCreateView method public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { fragmentTabHost = new…
Boldijar Paul
  • 5,405
  • 9
  • 46
  • 94
2
votes
0 answers

soft keyboard lifts tabs upwords even if we close the keyboard in Android

I am stuck with this problem, after hiding soft keyboard the TABS still upwards. I am using SCROLL_VIEW in my XML, but when I delete scroll keyboard works fine. i have also used android:windowSoftInputMode="adjustPan" in manifest.
2
votes
0 answers

Tapping on tab, scroll view scrolls down in android

I have two controls on the screen. One is linear layout which takes half of the screen. Second is fragment tab host. Which is equal to the size of screen of mobile. So scroll view is here to scroll down and up. Problem is that when I tap on any…
Yawar
  • 1,924
  • 3
  • 29
  • 39
2
votes
0 answers

Tab host fragment save instance

I have a Tabhost with 5 tab: tab1, tab2, tab3, tab4, tab5 and all of them have same fragment with different content. My fragment onCreateView method have these code: switch(tabtag){ case 1: loaddata1(); break; case 2: …
2
votes
1 answer

findFragmentByTag() is returning null when working with getSupportFragmentManager()

I am working with the support library ActionBar because I'm using an older minimum SDK. In the activity, I am using FragmentTabHost because I have 3 tabs. The ActionBar also has a SearchView, so when a search is made, the 3rd tab is switched out…