Android Guides | Samples

Android.Widget.ViewSwitcher Class

ViewAnimator that switches between two views, and has a factory from which these views are created.

See Also: ViewSwitcher

Syntax

[Android.Runtime.Register("android/widget/ViewSwitcher", DoNotGenerateAcw=true)]
public class ViewSwitcher : ViewAnimator

Remarks

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.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Widget.ViewSwitcher are listed below.

See Also: ViewAnimator

Public Constructors

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

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
NextViewView. Returns the next view to be displayed.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

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.
SetFactory(ViewSwitcher+IViewFactory)
Sets the factory used to create the two views between which the ViewSwitcher will flip.