|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.text.style.CharacterStyle
android.text.style.MetricAffectingSpan
android.text.style.TextAppearanceSpan
public class TextAppearanceSpan
Sets the text color, size, style, and typeface to match a TextAppearance resource.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class android.text.style.MetricAffectingSpan |
|---|
MetricAffectingSpan.Passthrough |
| Constructor Summary | |
|---|---|
TextAppearanceSpan(Context context,
int appearance)
Uses the specified TextAppearance resource to determine the text appearance. |
|
TextAppearanceSpan(Context context,
int appearance,
int colorList)
Uses the specified TextAppearance resource to determine the text appearance, and the specified text color resource to determine the color. |
|
TextAppearanceSpan(String family,
int style,
int size,
ColorStateList color,
ColorStateList linkColor)
Makes text be drawn with the specified typeface, size, style, and colors. |
|
| Method Summary | |
|---|---|
String |
getFamily()
Returns the typeface family specified by this span, or null
if it does not specify one. |
ColorStateList |
getLinkTextColor()
Returns the link color specified by this span, or null
if it does not specify one. |
ColorStateList |
getTextColor()
Returns the text color specified by this span, or null
if it does not specify one. |
int |
getTextSize()
Returns the text size specified by this span, or -1
if it does not specify one. |
int |
getTextStyle()
Returns the text style specified by this span, or 0
if it does not specify one. |
void |
updateDrawState(TextPaint ds)
|
void |
updateMeasureState(TextPaint ds)
|
| Methods inherited from class android.text.style.MetricAffectingSpan |
|---|
getUnderlying |
| Methods inherited from class android.text.style.CharacterStyle |
|---|
wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextAppearanceSpan(Context context,
int appearance)
appearance should be, for example,
android.R.style.TextAppearance_Small.
public TextAppearanceSpan(Context context,
int appearance,
int colorList)
appearance should be,
for example, android.R.style.TextAppearance_Small,
and the colorList should be, for example,
android.R.styleable.Theme_textColorDim.
public TextAppearanceSpan(String family,
int style,
int size,
ColorStateList color,
ColorStateList linkColor)
| Method Detail |
|---|
public String getFamily()
null
if it does not specify one.
public ColorStateList getTextColor()
null
if it does not specify one.
public ColorStateList getLinkTextColor()
null
if it does not specify one.
public int getTextSize()
-1
if it does not specify one.
public int getTextStyle()
0
if it does not specify one.
public void updateDrawState(TextPaint ds)
updateDrawState in class CharacterStylepublic void updateMeasureState(TextPaint ds)
updateMeasureState in class MetricAffectingSpan
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||