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
1 answer

Getting WindowManager$BadTokenException : Unable to add window

I have ceated a tabbed application using Tab host. There are 5 tabs and the first tab contains one fragment. In that fragment I am trying to show date/time picker upon clicking a particular view. But the app crashes with following error. I am using…
Satyasarathi
  • 93
  • 2
  • 10
0
votes
1 answer

If Tabs and Activities don't go together..Is there a way to cheat?

I am having a real hard time on putting my activities in tabs. I have an activity that parses an XML file and puts them on a list, and it works perfectly on its own. When I call it on a tab however it does not work (i get the dreaded "Sorry! blah…
HePE
  • 1
  • 2
0
votes
1 answer

Nested Fragment in FragmentTabHost can not onActivityResult

I create an application as below: Main activity includes FragmentTabHost which includes two ContainerFragments which include two Fragments separately. Now I startActivityForResult from UserFragment, but onActivityResult in UserFragment cannot be…
Victor S
  • 4,021
  • 15
  • 43
  • 54
0
votes
1 answer

Null object reference error in android fragment

public class HomeActivity extends FragmentActivity { // Fragment TabHost as tabobj private FragmentTabHost tabobj; @Override protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); //Set the Window to…
user5346283
0
votes
0 answers

How to create Vertical Tabs dynamically from json items in android?

I want to create vertical tabhost for filters like I want like this I don't want static buttons like this: http://rajeshandroiddeveloper.blogspot.in/2013/05/android-vertical-tablayout_20.html Anyone please help me. I have already googled but can't…
0
votes
2 answers

tab host title text appears in upper case want in lowercase

I have used this library and its title text shows in upper case I have referred this this but not getting the correct output.