Example usage for Java android.widget TabHost fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addTab(TabSpec tabSpec) Add a tab. |
View | getChildAt(int index) Returns the view at the specified position in the group. |
Context | getContext() Returns the context the view is running in, through which it can access the current theme, resources, etc. |
int | getCurrentTab() Returns the current tab. |
View | getCurrentView() |
FrameLayout | getTabContentView() Get the FrameLayout which holds tab content |
TabWidget | getTabWidget() |
TabSpec | newTabSpec(@NonNull String tag) Creates a new TabSpec associated with this tab host. |
void | setBackgroundColor(@ColorInt int color) Sets the background color for this view. |
void | setCurrentTab(int index) |
void | setCurrentTabByTag(String tag) Sets the current tab based on its tag. |
void | setLayoutParams(ViewGroup.LayoutParams params) Set the layout parameters associated with this view. |
void | setOnTabChangedListener(OnTabChangeListener l) Register a callback to be invoked when the selected state of any of the items in this list changes |
void | setup() Call setup() before adding tabs if loading TabHost using findViewById(). |
void | setVisibility(@Visibility int visibility) Set the visibility state of this view. |