Android
android.text.style
public class

android.text.style.StyleSpan

java.lang.Object
android.text.style.CharacterStyle
android.text.style.MetricAffectingSpan UpdateLayout
android.text.style.StyleSpan

Describes a style in a span. Note that styles are cumulative -- if both bold and italic are set in separate spans, or if the base style is bold and a span calls for italic, you get bold italic. You can't turn off a style from the base style.

Summary

Public Constructors

            StyleSpan(int style)

Public Methods

          int  getStyle()
Returns the style constant defined in Typeface.
          void  updateDrawState(TextPaint ds)
          void  updateMeasureState(TextPaint paint)
Methods inherited from class android.text.style.MetricAffectingSpan
Methods inherited from class android.text.style.CharacterStyle
Methods inherited from class java.lang.Object

Details

Public Constructors

public StyleSpan(int style)

Parameters

style An integer constant describing the style for this span. Examples include bold, italic, and normal. Values are constants defined in Typeface.

Public Methods

public int getStyle()

Returns the style constant defined in Typeface.

public void updateDrawState(TextPaint ds)

public void updateMeasureState(TextPaint paint)

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48