Public 成员函数 | |
| AbTextView (Context context, AttributeSet attrs) | |
| void | setPadding (float left, float top, float right, float bottom) |
| int | subStringLength (String str, int maxPix, TextPaint paint) |
| float | getStringWidth (String str, TextPaint paint) |
| float | getDesiredWidth (String str, TextPaint paint) |
| List< String > | getDrawRowStr (String text, int maxWPix, TextPaint paint) |
| int | getDrawRowCount (String text, int maxWPix, TextPaint paint) |
| int | drawText (Canvas canvas, String text, int maxWPix, TextPaint paint) |
Protected 成员函数 | |
| void | onDraw (Canvas canvas) |
Private 属性 | |
| float | leftPadding = 0 |
| float | topPadding = 0 |
| float | rightPadding = 0 |
| float | bottomPadding = 0 |
| float | lineSpacing = 0 |
| int | maxLines = 1 |
| float | textSize = 14 |
| int | textColor = Color.WHITE |
| TextPaint | mTextPaint = null |
© 2012 amsoft.cn 名称:AbTextView.java 描述:中英混合乱换行问题 .
|
inline |
Instantiates a new ab text view.
| context | the context |
| attrs | the attrs |
|
inline |
Draw text.
| canvas | the canvas |
| text | the text |
| maxWPix | the max w pix |
| paint | the paint |
|
inline |
Gets the desired width.
| str | the str |
| paint | the paint |
|
inline |
Gets the draw row count.
| text | the text |
| maxWPix | the max w pix |
| paint | the paint |
|
inline |
Gets the draw row str.
| text | the text |
| maxWPix | the max w pix |
| paint | the paint |
|
inline |
Gets the string width.
| str | the str |
| paint | the paint |
|
inlineprotected |
|
inline |
Sets the padding.
| left | the left |
| top | the top |
| right | the right |
| bottom | the bottom |
|
inline |
Sub string length.
| str | the str |
| maxPix | the max pix |
| paint | the paint |
|
private |
The bottom padding.
|
private |
padding.
|
private |
The line spacing.
|
private |
最大行数.
|
private |
TextPaint.
|
private |
The right padding.
|
private |
文字颜色.
|
private |
文字大小.
|
private |
The top padding.
1.8.8