open class ViewSwitcher : ViewAnimator
   ↳ android.view.View
   ↳ android.view.ViewGroup
   ↳ android.widget.FrameLayout
   ↳ android.widget.ViewAnimator
   ↳ android.widget.ViewSwitcher

ViewAnimator that switches between two views, and has a factory from which these views are created. You can either use the factory to create the views, or add them yourself. A ViewSwitcher can only have two child views, of which only one is shown at a time.


Nested classes

Creates views in a ViewSwitcher.

Inherited XML attributes
Inherited constants
Public constructors
<init>(context: Context!)

Creates a new empty ViewSwitcher.

<init>(context: Context!, attrs: AttributeSet!)

Creates a new empty ViewSwitcher for the given context and with the specified set attributes.

Public methods
open Unit
addView(child: View!, index: Int, params: ViewGroup.LayoutParams!)

Adds a child view with the specified layout parameters.

open Unit

Reset the ViewSwitcher to hide all of the existing views and to make it think that the first time animation has not yet played.

open CharSequence!

Return the class name of this object to be used for accessibility purposes.

open View!

Returns the next view to be displayed.

open Unit

Sets the factory used to create the two views between which the ViewSwitcher will flip.

Inherited functions