Build 1.0_r1(from source)

android.text.style
Class CharacterStyle

java.lang.Object
  extended by android.text.style.CharacterStyle
Direct Known Subclasses:
BackgroundColorSpan, ClickableSpan, ForegroundColorSpan, MaskFilterSpan, MetricAffectingSpan, RasterizerSpan, StrikethroughSpan, UnderlineSpan

public abstract class CharacterStyle
extends Object

The classes that affect character-level text formatting extend this class. Most also extend MetricAffectingSpan.


Constructor Summary
CharacterStyle()
           
 
Method Summary
 CharacterStyle getUnderlying()
          Returns "this" for most CharacterStyles, but for CharacterStyles that were generated by wrap(android.text.style.CharacterStyle), returns the underlying CharacterStyle.
abstract  void updateDrawState(TextPaint tp)
           
static CharacterStyle wrap(CharacterStyle cs)
          A given CharacterStyle can only applied to a single region of a given Spanned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterStyle

public CharacterStyle()
Method Detail

updateDrawState

public abstract void updateDrawState(TextPaint tp)

wrap

public static CharacterStyle wrap(CharacterStyle cs)
A given CharacterStyle can only applied to a single region of a given Spanned. If you need to attach the same CharacterStyle to multiple regions, you can use this method to wrap it with a new object that will have the same effect but be a distinct object so that it can also be attached without conflict.


getUnderlying

public CharacterStyle getUnderlying()
Returns "this" for most CharacterStyles, but for CharacterStyles that were generated by wrap(android.text.style.CharacterStyle), returns the underlying CharacterStyle.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature