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
149
votes
10 answers

Android: Tabs at the BOTTOM

I've seen some chatter about this, but nothing definite. Is there a way to put the tabs in a TabWidget to the bottom of the screen? If so, how? I've tried the following, but didn't work: a) setting the tabwidget below the framelayout b) setting…
llappall
  • 2,852
  • 3
  • 23
  • 26
39
votes
9 answers

Android TabWidget detect click on current tab

I am trying to find way to be able to fire an onclick event on a tab when this tab is the current tab. I did try this way (among several other) with no success thou. public void onTabChanged(String tabId) { Log.d(this.getClass().getName(),…
0m4r
  • 1,036
  • 1
  • 14
  • 25
26
votes
4 answers

How to change the font size of tabhost in android

How can the font size of the tabs be changed? I extend TabActivity for the tabs.
ReNa
  • 1,114
  • 6
  • 19
  • 37
25
votes
4 answers

how to change the color of the tabs indicator text in android?

how to change the color of the text indicator of tab? i can change the icon using selector tag refered the example. but cant to the text color. how?
Praveen
  • 90,477
  • 74
  • 177
  • 219
12
votes
4 answers

android:orientation="vertical" does not work for TabWidget

My app has a tabhost with four tabs, and now I'm trying to make nice layouts for landscape mode. In order to make use of additional horizontal space I want to put TabWidget at the right side of the screen, and of cource all tabs must be one under…
aiboman
  • 131
  • 1
  • 2
  • 5
12
votes
5 answers

Get rid of the line under TabWidget

I've got simple tab activity with next layout:
Denis Palnitsky
  • 18,267
  • 14
  • 46
  • 55
11
votes
2 answers

Tab widget have always in capital alphabets in android 4.0

In Android 4.0 i put tab bar with two widget. in code i write in small alphabates(new) but in application it should always display (NEW) How to write small alphabates on tab in android 4.0
user1153176
  • 1,006
  • 5
  • 15
  • 21
11
votes
5 answers

Android remove space between tabs in tabwidget

I have made an application which has tabs like in HelloTabActivity, there is also space between these tabs, can anyone suggest how to remove this space and also there is a grey line beneath the tabs how can that be removed? main.xml
10
votes
4 answers

Android ActionBar backbutton and tabs

I want to create an ActionBar and a tabbed navigation like the google+ app. I used this example as a starting point and now I have a great actionbar: http://developer.android.com/resources/samples/ActionBarCompat/index.html I've also included a…
Ste
  • 2,116
  • 7
  • 24
  • 24
9
votes
1 answer

android tabwidget intent tabs refresh every hit

I want to create a tab using child tab having intents, so that when ever user click on tabs intents get refresh. Every time user click on tab i want to refresh and called oncreate method of child intent tabs. public class Tabs3 extends TabActivity…
d-man
  • 57,473
  • 85
  • 212
  • 296
9
votes
4 answers

Change text color and selector in TabWidget

I've a TabWidget, independently of the ÀctionBar, in aFragmentTabHost`. I want to customize the look and feel of the TabWidget but I don't get it. My intention is to change the text color and the selector color, as you can see in the image I can…
Mun0n
  • 4,438
  • 4
  • 28
  • 46
7
votes
5 answers

How to implement horizontally scrollable tabs?

I'm trying to implement this application. At the moment I have designed tabs on it and since I have more than 7 tabs it looks too congested. How can I design it so that the tabwidget is scrollable horizontally. I have seen this design on few of the…
user1187383
7
votes
2 answers

How to set selected tab must be in middle

I am new to Android and in my project I have requirement i.e I have six tabs but I show only three tabs on screen and for rest of tabs…
7
votes
3 answers

Android: customizing the look of Tabs using TabHost & TabWidget

I opend a post about this before but I feel that I can now (after reading some other posts) better explain what I want and rephrase it so it will be better understand. I followed the tutorial about Tab Layout on the dev guide and I managed to create…
Belgi
  • 14,542
  • 22
  • 58
  • 68
7
votes
2 answers

TabHost / TabWidget - Scale Background Image?

I need to scale my TabWidget background images so they maintain aspect ratio. I am using a TabHost with a TabWidget. I am then using setBackgroundDrawable to set the images. I found a close answer here - Background in tab widget ignore scaling. …
user359519
  • 711
  • 2
  • 16
  • 28
1
2 3
22 23