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

create a slot in qt to react to a click of a pushbutton

I have a start/stop button which i want to control which tab is being shown in the tabWidget. here's how I'm doing it. // Control START/STOP actions void gui::start_stop() { if (acquisition == 0) { acquisition = 1; …
SamuelNLP
  • 4,038
  • 9
  • 59
  • 102
0
votes
0 answers

About the TabWidget in android

I set up setcontent(intent)in TabWidget. But I want to make a check before switch. If the condition was established it will switch. If not it won’t switch. How to realize this? After switch it will return last activity default and save the relevant…
bonnie
  • 331
  • 1
  • 4
  • 17
0
votes
1 answer

how to show progress dialog on switching tabs in Tab layout

I have read many solutions here to show a progress dialog on switching tabs as some of the tabs fetching data from server takes time in between that period i need to show progress dialog, do suggest where to put the code to accomplish my task
Vivek Singh
  • 1,201
  • 3
  • 17
  • 39
0
votes
1 answer

PyQt4 object does not display

I'm developing a tool in PyQt4 which edits config files. It changes the GUI every time a file is loaded. The editor GUI is a QTabWidget containing as many tabs as the number of chapters in the loaded file. On each tab, it has QGroupBoxes…
Mkoch
  • 1,994
  • 2
  • 13
  • 21
0
votes
2 answers

Change background color to tabhost

I would like to change the background of the tabwidget in shown in the next image: I would like to use a different background color, and change the font color to the selected tab. How can I do that?
Sterling Diaz
  • 3,789
  • 2
  • 31
  • 35
0
votes
2 answers

Icon in Tab (API 16+)

I saw this question here. The solution was to make a xml for a icon and then getResources().getDrawable(R.drawable.tabicon); on in. So this is in my java: TabHost tabhost = (TabHost)findViewById(R.id.tabhost); tabhost.setup(); TabSpec…
Lesik2008
  • 487
  • 1
  • 8
  • 16
0
votes
1 answer

Android TabWidget text space

Exists anyway to change left and right text space? Look at attached screen. So many space is wasted. They could fit without line break Regards
Dibo
  • 1,159
  • 17
  • 34
0
votes
2 answers

Move drop shadow of TabWidget along with it to bottom of the screen

I have an app that uses fragments and tabs. I have moved the tabs to the bottom of screen, but the tabwidget's shadow still at the top of the screen(. How to show it above the tabwidget. My main xml is same as in the following question, but slightly…
Ron
  • 24,175
  • 8
  • 56
  • 97
0
votes
0 answers

Add Tab, edit tab and remove tab from Tab Host

I want to be able to add tabs to my TabHost. My original tabwidget will have 2 tabs: 1 called 'Tab 1' 1 called 'Add Tab' What I had hoped was for Upon the user clicking 'Add Tab' a new Tab to be generated so that I have 3 tabs 1 called 'Tab 1' 1…
user1654757
  • 300
  • 1
  • 5
  • 14
0
votes
1 answer

Horizontal scrollview scroll changes tab focus

I hav a tab widget within horizontal scrollview. The problem that i m having is this that when i am scrolling through scroll view, current tab in the tab widget changes and because of this ontabchange event handler executed. To stop this i was…
0
votes
1 answer

Android Individual Tab Colors

I have created four tabs but want each tab to be a different block color - should this be done in the xml or java file? I'm assuming java because I only have one xml file for the whole tab widget.
codegirl
  • 21
  • 6
0
votes
1 answer

Tabbar in android

I am new to android development. Android XML layout has TAB as a UI component. How to use that tab and associate tabs with different views when both TabActivity class and ActivityGroup class are deprecated? Is it possible to use the same UI tab…
Warrior
  • 39,156
  • 44
  • 139
  • 214
0
votes
1 answer

TabHost - aligned bottom, disabled and showing no view

I know this is a bit odd but bear with me. I have a custom view, that extends TabHost and inflates a XML. It includes several views, it is aligned to bottom and everything works great. The problem is when I put the TabHost in a different activity,…
Lior Iluz
  • 26,213
  • 16
  • 65
  • 114
0
votes
1 answer

TabWidget.OnTabSelectionChanged cannot be resolved to a type

I'm trying to create a custom TabHost. And I want to call the setTabSelectionListener() method of TabWidget. But I have the following error: TabWidget.OnTabSelectionChanged cannot be resolved to a type Here is my test code: public class…
Mathieu Mahé
  • 2,647
  • 3
  • 35
  • 50
0
votes
1 answer

Can't make my own activity in the TabWidget

I download this project to code a software with a TabWidget. I tried to put my activity instead of the MainActivitybut everytime, it fails. I tried to change MainActivity (where there is TRYTOCHANGEHERE) to my own activity but it doesn't work. Do I…
castors33
  • 477
  • 10
  • 26