Android Guides | Samples

Android.Widget.ViewAnimator Class

Base class for a FrameLayout container that will perform animations when switching between its views.

See Also: ViewAnimator

Syntax

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

Remarks

Base class for a FrameLayout container that will perform animations when switching between its views.

[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.ViewAnimator are listed below.

See Also: FrameLayout

Public Constructors

Protected Constructors

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

Public Properties

[read-only]
AnimateFirstViewBoolean. Returns whether the current View should be animated the first time the ViewAnimator is displayed.
[read-only]
CurrentViewView. Returns the View corresponding to the currently displayed child.
DisplayedChildInt32. Returns the index of the currently displayed child view.
InAnimationAnimation. Returns the current animation used to animate a View that enters the screen.
OutAnimationAnimation. Returns the current animation used to animate a View that exits the screen.

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

SetAnimateFirstView(Boolean)
Indicates whether the current View should be animated the first time the ViewAnimator is displayed.
SetInAnimation(Context, Int32)
Specifies the animation used to animate a View that enters the screen.
SetOutAnimation(Context, Int32)
Specifies the animation used to animate a View that exit the screen.
ShowNext()
Manually shows the next child.
ShowPrevious()
Manually shows the previous child.