Java android.widget ViewSwitcher fields, constructors, methods, implement or subclass

Example usage for Java android.widget ViewSwitcher fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.widget ViewSwitcher.

The text is from its open source code.

Subclass

android.widget.ViewSwitcher has subclasses.
Click this link to see all its subclasses.

Method

TfindViewById(@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.
ViewgetCurrentView()
Returns the View corresponding to the currently displayed child.
intgetDisplayedChild()
Returns the index of the currently displayed child view.
voidpostInvalidate()

Cause an invalidate to happen on a subsequent cycle through the event loop.

voidreset()
Reset the ViewSwitcher to hide all of the existing views and to make it think that the first time animation has not yet played.
voidsetAnimation(Animation animation)
Sets the next animation to play for this view.
voidsetDisplayedChild(int whichChild)
Sets which child view will be displayed.
voidsetInAnimation(Animation inAnimation)
Specifies the animation used to animate a View that enters the screen.
voidsetOnClickListener(@Nullable OnClickListener l)
Register a callback to be invoked when this view is clicked.
voidsetOutAnimation(Animation outAnimation)
Specifies the animation used to animate a View that exit the screen.
voidsetVisibility(@Visibility int visibility)
Set the visibility state of this view.
voidshowNext()
Manually shows the next child.
voidshowPrevious()
Manually shows the previous child.