Example usage for Java android.text Layout fields, constructors, methods, implement or subclass
The text is from its open source code.
int | BREAK_STRATEGY_SIMPLE Value for break strategy indicating simple line breaking. |
int | BREAK_STRATEGY_HIGH_QUALITY Value for break strategy indicating high quality line breaking, including automatic hyphenation and doing whole-paragraph optimization of line breaks. |
int | BREAK_STRATEGY_BALANCED Value for break strategy indicating balanced line breaking. |
int | DIR_RIGHT_TO_LEFT |
void | draw(Canvas c) Draw this Layout on the specified Canvas. |
float | getDesiredWidth(CharSequence source, int start, int end, TextPaint paint) Return how wide a layout must be in order to display the specified text slice with one line per paragraph. |
float | getDesiredWidth(CharSequence source, TextPaint paint) Return how wide a layout must be in order to display the specified text with one line per paragraph. |
int | getEllipsisCount(int line) Returns the number of characters to be ellipsized away, or 0 if no ellipsis is to take place. |
int | getHeight() Return the total height of this layout. |
int | getLineAscent(int line) Get the ascent of the text on the specified line. |
int | getLineBaseline(int line) Return the vertical position of the baseline of the specified line. |
int | getLineBottom(int line) Return the vertical position of the bottom of the specified line. |
int | getLineBounds(int line, Rect bounds) Return the baseline for the specified line (0…getLineCount() - 1) If bounds is not null, return the top, left, right, bottom extents of the specified line in it. |
int | getLineCount() Return the number of lines of text in this layout. |
int | getLineDescent(int line) Return the descent of the specified line(0…getLineCount() - 1). |
int | getLineEnd(int line) Return the text offset after the last character on the specified line. |
int | getLineForOffset(int offset) Get the line number on which the specified text offset appears. |
int | getLineForVertical(int vertical) Get the line number corresponding to the specified vertical position. |
float | getLineLeft(int line) Get the leftmost position that should be exposed for horizontal scrolling on the specified line. |
float | getLineMax(int line) Gets the unsigned horizontal extent of the specified line, including leading margin indent, but excluding trailing whitespace. |
int | getLineStart(int line) Return the text offset of the beginning of the specified line ( 0…getLineCount()). |
int | getLineTop(int line) Return the vertical position of the top of the specified line (0…getLineCount()). |
int | getLineVisibleEnd(int line) Return the text offset after the last visible character (so whitespace is not counted) on the specified line. |
float | getLineWidth(int line) Gets the unsigned horizontal extent of the specified line, including leading margin indent and trailing whitespace. |
int | getOffsetForHorizontal(int line, float horiz) Get the character offset on the specified line whose position is closest to the specified horizontal position. |
TextPaint | getPaint() Return the base Paint properties for this layout. |
int | getParagraphDirection(int line) Returns the primary directionality of the paragraph containing the specified line, either 1 for left-to-right lines, or -1 for right-to-left lines (see #DIR_LEFT_TO_RIGHT , #DIR_RIGHT_TO_LEFT ). |
float | getPrimaryHorizontal(int offset) Get the primary horizontal position for the specified text offset. |
void | getSelectionPath(int start, int end, Path dest) Fills in the specified Path with a representation of a highlight between the specified offsets. |
CharSequence | getText() Return the text that is displayed by this Layout. |
int | getWidth() Return the width of this layout. |