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
4 answers

Simple multi-tab hide/show DIV

Overview: https://i.stack.imgur.com/8ManD.png I'm trying to create a simple multi-tab that hides/shows divs without using jquery. The shorter the code the better. Thanks!
Vianne
  • 548
  • 1
  • 10
  • 31
0
votes
1 answer

Add extra text in Tab in Android Tab

I want to add some text in the Header inside the red circle in Tab in Android. To make the Tab I used the following code. MyActivity.Java public class MainActivity extends TabActivity implements OnTabChangeListener { TabHost tabHost; …
NRahman
  • 2,717
  • 5
  • 24
  • 29
0
votes
1 answer

How to solve issue with sherlock theme in version(2.3.3)

I implemented sherlock theme by using sherlock fragment activity in 4.1.2 using android:theme="@style/Theme.Sherlock.Light" then tab widget showing like (tab icons showing fine here) this is Ok, but same code is not working in 2.3.3 and…
0
votes
0 answers

Error in list view for android application?

Hi all I have tab in my project. within my main tab i am having two sub tabs. Upto this tab its working finely. When i integrate pnr tab its raising error in list view. pnr_cnfrm_item_list_view.setVisibility(View.GONE); // got an error in this…
malavika
  • 1,331
  • 4
  • 21
  • 54
0
votes
1 answer

Custom Tabwidget (Button in Tabwidget)

I want to implement this layout with FragmentTabHost, but I don't know what components should I use. I know how to use FragmentTabHost, but in this case there is a round button in the TabWidget. I know this design doesn't follow the android design…
0
votes
1 answer

Icons are not displayed in Tabwidget

I'm trying to fill the TabHost with TabSpec's, all is fine but the icons inserted with setIndicator(text,drawable) are not shown. I tried using my own pics, as well as the ones from android - none worked. Here's my code: tabs =…
injecteer
  • 20,038
  • 4
  • 45
  • 89
0
votes
1 answer

Google Maps Are not Showing under Tabwidget otherwise works perfectly

The Activity in which i have my google maps implimentation works perfectly when i run it directly but when i try to use that activity under tabwidgets, instead of maps it only show grey Gridlines. Can't figure it out why it is happening
Vivek Singh
  • 1,201
  • 3
  • 17
  • 39
0
votes
1 answer

Increasing the tab size?

I have these 4 tabs as below. The problem is whenever I increase the tabs the tab size gets smaller. Is there any solution when they can simply be scrolled horizontally and also have the same size. public class MainActivity extends TabActivity…
ivesingh
  • 888
  • 3
  • 12
  • 30
0
votes
1 answer

Android tabwidget tabs width fix

I've followed the answer of rekaszero in Android remove space between tabs in tabwidget but now i need to set the tabs fit the screen automatically (in this mini-tut they are too big and they are off the screen) and also need to remove the text…
Bruno Carvalho
  • 111
  • 2
  • 16
0
votes
0 answers

TabWidget text not visible after background color changes

This works fine for all OS's except Jelly Bean. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mTabHost =…
SoundsDangerous
  • 708
  • 6
  • 13
0
votes
2 answers

TabHost.addTab -> Null pointer exception

Iam getting Nullpointer exception when adding tabspec to tabhost.i have tried like this public class MainActivity extends FragmentActivity implements TabHost.TabContentFactory { @Override protected void onCreate(Bundle savedInstanceState)…
user1213202
  • 1,305
  • 11
  • 23
0
votes
1 answer

connect from a QTab (in a QTabWidget) back to QMainWindow

The main part of my application is a Systray-Menu. For maintenance there should be a normal GUI. My problem is that now I have to create two Signal/Slot-Connections back to the main window from each tab. This is for minimizing the GUI and to update…
0
votes
2 answers

Android: 2 problems with a custom TabWidget

I'm trying to create custom tabs beneath the action bar. My action bar is already taken up by other widgets, so moving the tabs to the action bar is not an option. The tabs need to have both images and text. I'm having 2 problems: 1) When I do…
KairisCharm
  • 1,363
  • 1
  • 13
  • 32
0
votes
1 answer

Reduce the font size of title of tabs in android

I want to set font size of my TabWidget title. I have 6 tabs with the following titles: Delhi | Mumbai | New york | Shahnghai | Chicago | Sydney The screen is not able to show full text of title. Therefore, I want to reduce the font size…
Amandeep Singh
  • 3,754
  • 8
  • 51
  • 72
0
votes
1 answer

Drawables Alpha changing while TabHost tabs switching

I need to changing alpha of the drawables of my tabs when I click between my tabs in TabHost. I do it like this: getTabHost().setOnTabChangedListener(new OnTabChangeListener() { public void onTabChanged(String tabId) { …