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

How to remove android tab widget border lines?

I have a android tab host activity and I want to remove the border lines between the tabs a default tab widget looks like this: Tab1|Tab2|Tab| but I want it to appear like this: Tab1 Tab2 Tab3 How can I obtain this kind of look on my android tab…
0
votes
1 answer

FragmentTabHost add tabs in async postExecute

I'm getting this in logCat when trying to run my app: java.lang.IllegalStateException: No tab known for tag null What Im trying to do is to initialize the Tabhost in onCreateView like this: mTabHost = (FragmentTabHost)…
Darko Petkovski
  • 3,892
  • 13
  • 53
  • 117
0
votes
2 answers

set textview to other xml in fragment

I am doing an android project which uses a Tabhost to link to 3 fragments and need some communication between them. Each tab will include another xml file. I linked different element in different sml file to the .java file. But it doesn't seem to…
0
votes
3 answers

Pass values to tab fragment

I have two tabs in a FragmentTabHost - and my question is how can I pass data to the selected fragment? Here is my code: mTabHost.addTab(mTabHost.newTabSpec("clips").setIndicator(("Clips")), MyClipsFragment.class, null); …
Darko Petkovski
  • 3,892
  • 13
  • 53
  • 117
0
votes
1 answer

Android: menu in TabHost not appear with items only in Tab2

I'm trying to create a menu with TabHost. Options: Tab1: no items Tab2: one item I've done it with setVisible true or false. But my problem is that the menu does not appear in Tab2 when I haven't items in Tab1. If I put items to Tab1 works ok.…
user4152
  • 241
  • 5
  • 16
0
votes
1 answer

How to add a tab to TabView

I am trying to build a TabView for my android application. This is my java code public class AllMain extends TabActivity{ @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method…
LIH
  • 933
  • 2
  • 10
  • 25
0
votes
1 answer

on TabHost Change Fragment not loading

I am working on an App which has 3 Tabs using TabHost inside FragmentActivity and i called them like private void setTabContent() { mTabHost = (FragmentTabHost) findViewById(android.R.id.tabhost); mTabHost.setup(this,…
0
votes
1 answer

FragmentTabHost: The specified child already has a parent

I'm trying to have a FragmentTabHost and set custom views for tabs. The FragmentTabHost is inflated inside a Fragment. This is the Fragment code: @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, …
edoardotognoni
  • 2,752
  • 3
  • 22
  • 31
0
votes
0 answers

Problems with tabHost, buttons and vertical scrolls

I am doing an aplication and I need a tabhost with vertical scrollview in all the tabs, and one of them also need to have a button which bring us to another layout. The thing is that all the tabwidgets are displayed properly but it doesn't work the…
0
votes
2 answers

Tabs are not displayed

After adding tabhost and tabcontent can't create tabview. How to add tab in android. I use below code to display tabs. XML File:
Samir Savasani
  • 352
  • 3
  • 8
0
votes
2 answers

FragmentTabHost shows content in tab

im trying to set up a FragmentTabHost with 3 tabs. The problem im having is the content of each tab is actually being displayed in the tab tittle as well. Why is this happening? The layout for tab1 has a textview that says "Tab1" this is being…
0
votes
0 answers

Application crash without any error

I have 2 classes phone and dialpad.java. In phone class i have 5 lines when u click on these lines the dialpad.java class will open.i want to run multiActivities in a single Tab like i have home tab and in home tab the phone activity is show when i…
0
votes
1 answer

Android theming Actionbar tab

I want to customize my tab like this i.e a selected tab will have a white background while a unselected tab will have a green background. Till now I am able to achieve to achieve this I am doing the following as my style:-
0
votes
2 answers

why does my tabhost with intent not work?

here is my start activity, i want other activities to open when tab is clicked, the other activities are also stated in the android manifest, please tell me what i am doing wrong, thank you in advance: package at.co.ccc.mondel; import…
Marcus Mondel
  • 618
  • 1
  • 5
  • 10
0
votes
0 answers

Page flip animation in tabhost

I created a tab host with 5 tab buttons. When click on button i want to change current page to corresponding page with a flip animation. I tried a lot. Please help. Give me complete project code
1 2 3
99
100