Example usage for Java android.widget TabWidget fields, constructors, methods, implement or subclass
The text is from its open source code.
View | getChildAt(int index) Returns the view at the specified position in the group. |
int | getChildCount() Returns the number of children in the group. |
View | getChildTabViewAt(int index) Returns the tab indicator view at the given index. |
Context | getContext() Returns the context the view is running in, through which it can access the current theme, resources, etc. |
int | getDescendantFocusability() Gets the descendant focusability of this view group. |
ViewGroup.LayoutParams | getLayoutParams() Get the LayoutParams associated with this view. |
ViewParent | getParent() Gets the parent of this view. |
int | getTabCount() Returns the number of tab indicator views. |
void | removeView(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. |
boolean | requestRectangleOnScreen(Rect rectangle, boolean immediate) Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough. |
void | setAlpha(@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. |
void | setBackgroundResource(@DrawableRes int resid) Set the background to a given resource. |
void | setCurrentTab(int index) Sets the current tab. |
void | setDescendantFocusability(int focusability) Set the descendant focusability of this view group. |
void | setDividerDrawable(@Nullable Drawable drawable) Sets the drawable to use as a divider between the tab indicators. |
void | setDividerDrawable(@DrawableRes int resId) Sets the drawable to use as a divider between the tab indicators. |
void | setEnabled(boolean enabled) |
void | setId(@IdRes int id) Sets the identifier for this view. |
void | setLeftStripDrawable(@Nullable Drawable drawable) Sets the drawable to use as the left part of the strip below the tab indicators. |
void | setLeftStripDrawable(@DrawableRes int resId) Sets the drawable to use as the left part of the strip below the tab indicators. |
void | setOrientation(@OrientationMode int orientation) Should the layout be a column or a row. |
void | setRightStripDrawable(@Nullable Drawable drawable) Sets the drawable to use as the right part of the strip below the tab indicators. |
void | setRightStripDrawable(@DrawableRes int resId) Sets the drawable to use as the right part of the strip below the tab indicators. |
void | setShowDividers(@DividerMode int showDividers) Set how dividers should be shown between items in this layout |
void | setStripEnabled(boolean stripEnabled) Controls whether the bottom strips on the tab indicators are drawn or not. |
void | setVisibility(@Visibility int visibility) Set the visibility state of this view. |