public interface SelectionIndicator
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfItems() |
int |
getSelectedItemIndex() |
int |
getTransitionDuration() |
boolean |
isVisible() |
void |
setNumberOfItems(int numberOfItems)
Sets the number of items represented by this indicator and updates the UI to reflect the
change.
|
void |
setSelectedItem(int index,
boolean animate)
Sets the index of the currently selected item and updates the UI to reflect the change.
|
void |
setTransitionDuration(int durationMs)
Sets the duration to use when animating items between selected and unselected.
|
void |
setVisibility(boolean show)
Changes the visibility of this indicator.
|
void setSelectedItem(int index,
boolean animate)
index - the index of the selected item, counting from zeroanimate - whether or not the UI change should be animatedint getSelectedItemIndex()
void setNumberOfItems(int numberOfItems)
numberOfItems - the number of items in the set this indicator represents, not negativeint getNumberOfItems()
void setTransitionDuration(int durationMs)
durationMs - the duration to use, measured in millisecondsint getTransitionDuration()
void setVisibility(boolean show)
show - true to make this indicator visible, false otherwiseboolean isVisible()