Android7.0中文文档(API)-- TextSwitcher

来源:互联网 发布:富士施乐驱动for mac 编辑:程序博客网 时间:2024/06/07 18:57

完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/TextSwitcher.html

TextSwitcher

public class TextSwitcher
extendsViewSwitcher

java.lang.Object   ↳android.view.View    ↳android.view.ViewGroup     ↳android.widget.FrameLayout      ↳android.widget.ViewAnimator       ↳android.widget.ViewSwitcher        ↳android.widget.TextSwitcher

Specialized ViewSwitcher that contains only children of typeTextView. A TextSwitcher is useful to animate a label on screen. WheneversetText(CharSequence) is called, TextSwitcher animates the current text out and animates the new text in.
特殊的ViewSwitcher,它只包含TextView类型的子项。TextSwitcher通常用于在屏幕上动画一个文本标签。当调用setText(CharSequence)方法后,TextSwitcher就把当前文本动画移出,并把新的文本动画移入。

摘要


继承XML属性

From class android.widget.ViewAnimator
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View

继承常量

From class android.view.ViewGroup
From class android.view.View

继承字段

From class android.view.View

Public构造方法

TextSwitcher(Context context)

Creates a new empty TextSwitcher.
创建一个新的空TextSwitcher。

TextSwitcher(Context context, AttributeSet attrs)

Creates a new empty TextSwitcher for the given context and with the specified set attributes.
为指定的Context和指定的AttributeSet创建一个新的空TextSwitcher。

Public方法