Most visited

Recently visited

Added in API level 1

MetricAffectingSpan

public abstract class MetricAffectingSpan
extends CharacterStyle implements UpdateLayout

java.lang.Object
   ↳ android.text.style.CharacterStyle
     ↳ android.text.style.MetricAffectingSpan
Known Direct Subclasses
Known Indirect Subclasses


以改变字符宽度或高度的方式影响字符级文本格式的类会扩展此类。

Summary

Public constructors

MetricAffectingSpan()

Public methods

MetricAffectingSpan getUnderlying()

对于大多数MetricAffectingSpans返回“this”,但对于由 wrap(CharacterStyle)生成的 wrap(CharacterStyle) ,返回基础的MetricAffectingSpan。

abstract void updateMeasureState(TextPaint p)

Inherited methods

From class android.text.style.CharacterStyle
From class java.lang.Object

Public constructors

MetricAffectingSpan

Added in API level 1
MetricAffectingSpan ()

Public methods

getUnderlying

Added in API level 1
MetricAffectingSpan getUnderlying ()

对于大多数MetricAffectingSpans返回“this”,但对于由 wrap(CharacterStyle)生成的 wrap(CharacterStyle) ,返回基础的MetricAffectingSpan。

Returns
MetricAffectingSpan

updateMeasureState

Added in API level 1
void updateMeasureState (TextPaint p)

Parameters
p TextPaint

Hooray!