A TextSwitcher is a specialized ViewSwitcher that contains only children of type TextView. A TextSwitcher is useful to animate a label on screen. Whenever setText(CharSequence) is called, TextSwitcher animates the current text out and animates the new text in.
Also see ViewGroup.LayoutParams for layout attributes.
XML Attributes inherited
from class
android.widget.FrameLayout
XML Attributes inherited
from class
android.view.ViewGroup
XML Attributes inherited
from class
android.view.View
Constants inherited
from class
android.view.ViewGroup
Constants inherited
from class
android.view.View
Fields inherited
from class
android.widget.ViewSwitcher
Fields inherited
from class
android.widget.ViewAnimator
Fields inherited
from class
android.widget.FrameLayout
Fields inherited
from class
android.view.ViewGroup
Fields inherited
from class
android.view.View
| TextSwitcher(Context context) | |||||
| Creates a new empty TextSwitcher. | |||||
| TextSwitcher(Context context, AttributeSet attrs, Map inflateParams) | |||||
| Creates a new empty TextSwitcher for the given context and with the specified set attributes. | |||||
| void | addView(View child, int index, LayoutParams params) | ||||
| Adds a child view with the specified layout parameters. | |||||
| int | getBaseline() | ||||
Return the offset of the widget's text baseline from the widget's top boundary. |
|||||
| void | setText(CharSequence text) | ||||
| Sets the text of the next view and switches to the next view. | |||||
Methods inherited
from class
android.widget.ViewSwitcher
Methods inherited
from class
android.widget.ViewAnimator
Methods inherited
from class
android.widget.FrameLayout
Methods inherited
from class
android.view.ViewGroup