public abstract class AbstractItem
extends java.lang.Object
TabSwitcher
.Constructor and Description |
---|
AbstractItem(int index)
Creates a new item, which contains information about a child view of a
TabSwitcher . |
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Returns the index of the item.
|
Tag |
getTag()
Returns the tag, which is associated with the item.
|
android.view.View |
getView()
Returns the view, which is used to visualize the item.
|
boolean |
isInflated()
Returns, whether a view, which is used to visualize the item, is currently inflated, or not.
|
boolean |
isVisible()
Returns, whether the item is currently visible, or not.
|
void |
setTag(Tag tag)
Sets the tag, which is associated with the item.
|
void |
setView(android.view.View view)
Sets the view, which is used to visualize the item.
|
public AbstractItem(int index)
TabSwitcher
.index
- The index of the item as an Integer
value. The index must be at least 0public final int getIndex()
Integer
value. The index must be at least 0public final android.view.View getView()
View
or null, if no such view is currently inflatedpublic final void setView(@Nullable android.view.View view)
view
- The view, which should be set, as an instance of the class View
or null, if
no view should be set@NonNull public final Tag getTag()
Tag
. The tag may not be nullpublic final void setTag(@NonNull Tag tag)
tag
- The tag, which should be set, as an instance of the class Tag
. The tag may
not be nullpublic final boolean isVisible()
@CallSuper public boolean isInflated()