Example usage for Java android.widget ViewSwitcher fields, constructors, methods, implement or subclass
The text is from its open source code.
T | findViewById(@IdRes int id) Finds the first descendant view with the given ID, the view itself if the ID matches #getId() , or null if the ID is invalid (< 0) or there is no matching view in the hierarchy. |
View | getCurrentView() Returns the View corresponding to the currently displayed child. |
int | getDisplayedChild() Returns the index of the currently displayed child view. |
void | postInvalidate() Cause an invalidate to happen on a subsequent cycle through the event loop. |
void | reset() Reset the ViewSwitcher to hide all of the existing views and to make it think that the first time animation has not yet played. |
void | setAnimation(Animation animation) Sets the next animation to play for this view. |
void | setDisplayedChild(int whichChild) Sets which child view will be displayed. |
void | setInAnimation(Animation inAnimation) Specifies the animation used to animate a View that enters the screen. |
void | setOnClickListener(@Nullable OnClickListener l) Register a callback to be invoked when this view is clicked. |
void | setOutAnimation(Animation outAnimation) Specifies the animation used to animate a View that exit the screen. |
void | setVisibility(@Visibility int visibility) Set the visibility state of this view. |
void | showNext() Manually shows the next child. |
void | showPrevious() Manually shows the previous child. |