Java android.widget TabWidget fields, constructors, methods, implement or subclass

Example usage for Java android.widget TabWidget fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.widget TabWidget.

The text is from its open source code.

Constructor

Method

ViewgetChildAt(int index)
Returns the view at the specified position in the group.
intgetChildCount()
Returns the number of children in the group.
ViewgetChildTabViewAt(int index)
Returns the tab indicator view at the given index.
ContextgetContext()
Returns the context the view is running in, through which it can access the current theme, resources, etc.
intgetDescendantFocusability()
Gets the descendant focusability of this view group.
ViewGroup.LayoutParamsgetLayoutParams()
Get the LayoutParams associated with this view.
ViewParentgetParent()
Gets the parent of this view.
intgetTabCount()
Returns the number of tab indicator views.
voidremoveView(View view)

Note: do not invoke this method from #draw(android.graphics.Canvas) , #onDraw(android.graphics.Canvas) , #dispatchDraw(android.graphics.Canvas) or any related method.

booleanrequestRectangleOnScreen(Rect rectangle, boolean immediate)
Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.
voidsetAlpha(@FloatRange(from = 0.0, to = 1.0) float alpha)
Sets the opacity of the view to a value from 0 to 1, where 0 means the view is completely transparent and 1 means the view is completely opaque.
voidsetBackgroundResource(@DrawableRes int resid)
Set the background to a given resource.
voidsetCurrentTab(int index)
Sets the current tab.
voidsetDescendantFocusability(int focusability)
Set the descendant focusability of this view group.
voidsetDividerDrawable(@Nullable Drawable drawable)
Sets the drawable to use as a divider between the tab indicators.
voidsetDividerDrawable(@DrawableRes int resId)
Sets the drawable to use as a divider between the tab indicators.
voidsetEnabled(boolean enabled)
voidsetId(@IdRes int id)
Sets the identifier for this view.
voidsetLeftStripDrawable(@Nullable Drawable drawable)
Sets the drawable to use as the left part of the strip below the tab indicators.
voidsetLeftStripDrawable(@DrawableRes int resId)
Sets the drawable to use as the left part of the strip below the tab indicators.
voidsetOrientation(@OrientationMode int orientation)
Should the layout be a column or a row.
voidsetRightStripDrawable(@Nullable Drawable drawable)
Sets the drawable to use as the right part of the strip below the tab indicators.
voidsetRightStripDrawable(@DrawableRes int resId)
Sets the drawable to use as the right part of the strip below the tab indicators.
voidsetShowDividers(@DividerMode int showDividers)
Set how dividers should be shown between items in this layout
voidsetStripEnabled(boolean stripEnabled)
Controls whether the bottom strips on the tab indicators are drawn or not.
voidsetVisibility(@Visibility int visibility)
Set the visibility state of this view.