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
7
votes
2 answers

How to animate item in Tab Layout when select a tab?

I want to put an animation when i am taping the tab i want image rotation animation on tab icon. Below is the Example but it is in iOS.
Gaurav Singhal
  • 189
  • 1
  • 12
7
votes
3 answers

How can remove padding or margin in Tabwidget in android?

I want to create tabbed application. everything is allright but when I create the tab. the space between the tabs too much. I want to remove this padding or margin but I don't know how can i do that. any suggestion? XML
user3575812
  • 300
  • 2
  • 12
6
votes
3 answers

Why keyboard appear after the TabBar?

In My application there is tabBar and the Edittext. See below image: Normal Screen: And Image After press on edittext: Now why this tabbar goes up with the keyboard. I want it to be remain fix at the bottom even if the user open the keyboard by…
Shreyash Mahajan
  • 23,386
  • 35
  • 116
  • 188
6
votes
5 answers

How to make oval shape tabhost in android

I tried to make oval shape tabhost as expected below shape. I tried the below codes. public class AndroidTabLayoutActivity extends TabActivity { TabHost tabHost; @Override public void onCreate(Bundle savedInstanceState) { …
6
votes
4 answers

Different sized tabs in Android

I have an application with 4 tabs. By default every tab width is 1/4 of the screen width. How can I override this? I need the tabs to have a different width for each one. Any ideas on how to accomplish that?
momo
  • 106
  • 1
  • 5
6
votes
2 answers

Tabhost- set the badge position in tabs Android

I am new to badge's concept. In my application i want to show the badges on one tab. For that i used the android-viewbadger.jar file Android ViewBadger it is working fine with 4 tabs, TabWidget tabs = (TabWidget)…
Ali Ashiq
  • 124
  • 2
  • 12
6
votes
4 answers

TabWidget white foreground color?

I don't know what I did but for a period of time my TabWidget had white colored tabs which looked really nice. I never set a theme or background/foreground color in my project at all. The next time I compiled it it reverted back to the gray tabs. My…
Monstieur
  • 7,992
  • 10
  • 51
  • 77
6
votes
4 answers

Android TabWidget in Light theme

I have an application that targets the 1.5 framework and uses the default light theme. When using a tab widget with this theme, the tab images are barely visible, and the tab captions are quite impossible to discern, except for the currently active…
David Hedlund
  • 128,221
  • 31
  • 203
  • 222
6
votes
1 answer

Is it possible to use ActionBarSherlock style on native TabWidget?

I am wondering is it possible to apply ActionBarSherlock (v4.2.0) TabWidget theme on native TabWidget? So it will looks like Holo on pre ICS androids. If you know how - please share. All i found is this: https://gist.github.com/1126843 but it seems…
Androider
  • 257
  • 3
  • 11
5
votes
2 answers

Controlling Tab colour-state / size in a TabActivity?

Ok, this is driving me nuts - I've searched all of the references and examples I can find and I still seem to be missing something really obvious. These are the tabs for a 7-day TV Guide (not normally with the red arrow, obviously :) )... What I…
Squonk
  • 48,735
  • 19
  • 103
  • 135
5
votes
2 answers

How do I change the color and/or drawable of the TabWidget divider in Android?

I'm using a TabLayout and I have custom images for the tabs that I am using, but for the life of me I can't figure out how to change the color or even the image of the divider between the tabs and the tab content. I have attempted to use…
Soler
  • 119
  • 1
  • 7
5
votes
1 answer

Tabwidget overlaps with my activity content

after spending 2 solid days searching for an answer, I would like to ask for help about the following behaviour. I'm trying to code a simple tabhost application on Android, with a layout per activity. I've designed my layout so that the tabwidget…
Adam Dulson
  • 283
  • 5
  • 16
5
votes
2 answers

Existing patches for android tabwidget to allow tabs on left-hand side?

My employer is having me work on an android application with very specific UI requirements. Specifically, we need an interface that looks exactly like a TabWidget interface. However, having the tabs on the left hand side is an absolute must. We…
Michael Jones
  • 51
  • 1
  • 3
5
votes
1 answer

Strange options menu behavior in Android TabActivity

I have a TabActivity with four tabs (each is its own Activity). Each tab defines its own onCreateOptionsMenu (and in some cases, onPrepareOptionsMenu). When each tab is loaded, an AsyncTask is kicked off to retrieve the data needed to populate that…
5
votes
2 answers

android first tab intent oncreate always called regardless we set tab2 as default tab

Following is the example of tabs with intent data. While debugging i found that always when first tab we add in tab host in our case following tab tabHost.addTab(tabHost.newTabSpec("tab1") .setIndicator("list") …
d-man
  • 57,473
  • 85
  • 212
  • 296
1
2
3
22 23