public abstract class

TextHighlightingAnimation

extends Object
implements Runnable
java.lang.Object
   ↳ com.android.contacts.TextHighlightingAnimation

Class Overview

An animation that alternately dims and brightens the non-highlighted portion of text.

Summary

Nested Classes
class TextHighlightingAnimation.TextWithHighlighting A Spanned that highlights a part of text by dimming another part of that text. 
Public Constructors
TextHighlightingAnimation(int duration)
Constructor.
Public Methods
TextHighlightingAnimation.TextWithHighlighting createTextWithHighlighting()
Returns a Spanned that can be used by a text view to show text with highlighting.
void run()
Animation step.
void startHighlighting()
Starts the highlighting animation, which will dim portions of text.
void stopHighlighting()
Starts un-highlighting animation, which will brighten the dimmed portions of text to the brightness level of the rest of text.
Protected Methods
abstract void invalidate()
Override and invalidate (redraw) TextViews showing TextHighlightingAnimation.TextWithHighlighting.
void onAnimationEnded()
Called when the animation has stopped.
void onAnimationStarted()
Called when the animation starts.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Runnable

Public Constructors

public TextHighlightingAnimation (int duration)

Constructor.

Public Methods

public TextHighlightingAnimation.TextWithHighlighting createTextWithHighlighting ()

Returns a Spanned that can be used by a text view to show text with highlighting.

public void run ()

Animation step.

public void startHighlighting ()

Starts the highlighting animation, which will dim portions of text.

public void stopHighlighting ()

Starts un-highlighting animation, which will brighten the dimmed portions of text to the brightness level of the rest of text.

Protected Methods

protected abstract void invalidate ()

Override and invalidate (redraw) TextViews showing TextHighlightingAnimation.TextWithHighlighting.

protected void onAnimationEnded ()

Called when the animation has stopped.

protected void onAnimationStarted ()

Called when the animation starts.