Questions tagged [tabwidget]

(Android) Displays a list of tab labels representing each page in the parent's tab collection.

(Android) 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. You might call this object to iterate the list of tabs, or to tweak the layout of the tab list, but most methods should be called on the containing TabHost object.

Reference: http://developer.android.com/reference/android/widget/TabWidget.html

331 questions
0
votes
2 answers

How to set tabbar in bottom of the screen in Android?

Currently i am working tabbar application in Android. here i mentioned the code for your reference, I refer the web, some of the links Found (android:layout_alignParentBottom = "true") insert this line in TabWidget, but the tabbar visible in Top…
SampathKumar
  • 2,525
  • 8
  • 47
  • 82
0
votes
1 answer

Stack 2 QTableWidgets

I'm currently doing a map editor for a game I created, and I have a tiny problem with Qt. It's the first time I use it, but I love the challenge and I thought it would be a great experience. I'm currently building my interface using Qt Designer and…
user740316
0
votes
1 answer

What is the proper way to add an icon to a tab to a TabHost for Android?

I'm new to Android development. I've added a TabHost to my Android application, and can change the text of the three tabs I have just fine. I can click them to show different views, etc. But where and how do I add an icon to a specific tab? Not…
Ethan Allen
  • 14,425
  • 24
  • 101
  • 194
0
votes
1 answer

Android tab-bar activity

I am using tab-bar activity. And setting three activities in three tabs. When I open a fourth activity it is opening in separate activity and can not see tabs that I set. How can I open a fourth activity which does not hide three tab bars.
AndroidDev
  • 2,627
  • 6
  • 29
  • 41
0
votes
1 answer

android tabhost how to launch new activity inside the tabhost

I have a Tabhost which is my main activity. When a tab is clicked you will see the activity inside the Tabwidget. In the inside activity i have this button which launch a new intent. Is there a way that this intent can be launch in the same Tabhost…
Asaf Nevo
  • 11,338
  • 23
  • 79
  • 154
0
votes
1 answer

Customized textview color inside tabwidget

I want to create a customized TabWidget in android , I have done changes on the background and the selected background color for the tabs, but I want to change the color of textview inside each tab at selecting the tab . how?
Adham
  • 63,550
  • 98
  • 229
  • 344
0
votes
2 answers

Chronometer doesn't draw when initially added to layout

I'm trying to write a simple timer app. I'm creating a counter class that extends chronometer. Anyway, when I add the custom chronometer to my layout in onCreate(), it doesn't get drawn. It only gets drawn later when I switch to another tab, and…
Andi Jay
  • 5,882
  • 13
  • 51
  • 61
0
votes
3 answers

Changing background of tabhost workds in ICS but is causing problems in lower versions

To make the tabhost transparent i have implemented the following code.. for(int i = 0; i < th.getTabWidget().getTabCount(); i++) { th.getTabWidget().getChildAt(i).setBackgroundColor(Color.TRANSPARENT); } This changes the background…
0
votes
2 answers

android tabs with interactive views

I am trying to avoid using intents and activities within tabhost and tabwidget This code is starting to get messy just using views for everything. My problem is that I am having difficulty retaining information. In one tab I have one view which has…
CQM
  • 42,592
  • 75
  • 224
  • 366
0
votes
1 answer

Android Spinner Within TabWidget Bad Token

I'm fairly new to Android and Java for that matter, and am having a context issue - I have a Spinner within a TabWidget within another TabWidget, and on the code side I have my main class which is a TabActivity, in which I set the intent of a…
Aaj
  • 259
  • 3
  • 16
0
votes
1 answer

Tab OnClickListener in another activity

My Tools.java : protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.tabtools); Resources res = getResources(); TabHost tabHost =…
0
votes
1 answer

Listening click TabWidget

My tabhost tools.java: @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.tabtools); Resources res = getResources(); …
GDawson
  • 3
  • 1
  • 6
-1
votes
1 answer

QT TabBar side pane only

I have added a QTabWidget which is checkable. I want to hide all tabs (panes only) when the TabBar is unchecked and vice versa. Is there any way to make only pane invisible and tab bar will not disappear? I add the image reference related to what I…
Amar Yadav
  • 29
  • 9
-1
votes
1 answer

How to place image icons in tab in android?

I need to implement the tab widget with icon in this screen shot. Can anyone please explain how it needs to be implemented using fragments. If we click the image icon it should display listview. Thanks.
winchester100
  • 147
  • 3
  • 13
-1
votes
2 answers

No orientation Specified while adding Tab Widget

I created a new Android Project in eclipse and trying to add Tab Widget but I am getting an error saying "No orientation specified, and the default is horizontal. This is a common source of bugs when children are added dynamically." I tried putting …
1 2 3
22
23