9patchcoder
9patchcoder

Reputation: 639

Call TextSwitcher's SetText without using the fade animation

I'm trying to implement a TextSwitcher in my calculator app, it works and animates fine, but under some circumstances I want it NOT to animate the Text Changing process (change text like a simple textView)

Example:

Button A clicked --> Change the Value with a nice fade animation
Button B clicked --> Change The Value without any particular animation

what should I do? Is there another method available for setting text without the animation?

Upvotes: 2

Views: 1230

Answers (1)

matiash
matiash

Reputation: 55350

Yes: setCurrentText().

Sets the text of the text view that is currently showing. This does not perform the animations.

Upvotes: 10

Related Questions