Android Guides | Samples

Android.Widget.TextSwitcher Class

Specialized ViewSwitcher that contains only children of type TextView.

See Also: TextSwitcher

Syntax

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

Remarks

Specialized ViewSwitcher that contains only children of type TextView. A TextSwitcher is useful to animate a label on screen. Whenever TextSwitcher.SetText(ICharSequence) is called, TextSwitcher animates the current text out and animates the new text in.

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

See Also: ViewSwitcher

Public Constructors

Creates a new empty TextSwitcher.
Creates a new empty TextSwitcher 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.

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

SetCurrentText(ICharSequence)
Sets the text of the text view that is currently showing.
SetCurrentText(String)
SetText(ICharSequence)
Sets the text of the next view and switches to the next view.
SetText(String)