TextLayout.@Deprecated public class RichTextLayout extends Layout
mNativeLayoutHandle| 构造器 | 说明 |
|---|---|
RichTextLayout(RichText textSource,
Paint textPaint,
Rect rect,
int width) |
已过时。
|
RichTextLayout(RichText textSource,
Paint textPaint,
Rect rect,
int width,
boolean isRTL) |
已过时。
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
float |
calculateTextWidth(RichText source) |
已过时。
|
drawHighlight, drawText, getAscent, getBaseline, getBeginCharIndex, getBottom, getCharIndexByCoordinate, getCoordinateForVertical, getCoordinateInMainDir, getCoordinateInSecondDir, getDescent, getEndCharIndex, getHeight, getLimitWidth, getLineCount, getLineEnd, getLineIndexByCharIndex, getLineIndexByCoordinate, getLineStart, getNumOfFontHeight, getTextWidth, getTop, getWidth@Deprecated public RichTextLayout(RichText textSource, Paint textPaint, Rect rect, int width)
RichTextLayout instance with a specified text,
paint attribute of the text, rectangle where the text is displayed, and maximum width of the text.
By default, the text direction is from left to right.
textSource - Indicates the text.textPaint - Indicates the paint attribute of the text.rect - Indicates the rectangle where the text is displayed.width - Indicates the maximum width of the text.NullPointerException - Throws this exception if any parameter is null.@Deprecated public RichTextLayout(RichText textSource, Paint textPaint, Rect rect, int width, boolean isRTL) throws NullPointerException
RichTextLayout instance with a specified text,
paint attribute of the text, rectangle where the text is displayed,
maximum width of the text, and text direction.textSource - Indicates the text.textPaint - Indicates the paint attribute of the text.rect - Indicates the rectangle where the text is displayed.width - Indicates the maximum width of the text.isRTL - Indicates the text direction.
The value true indicates the right-to-left text direction,
and false indicates the opposite.NullPointerException - Throws this exception if any parameter is null.@Deprecated public float calculateTextWidth(RichText source)
source - Indicates the text whose width is to be calculated.