最近工作中有画文字换行的需求于是研究了一下
StaticLayout(CharSequence source, int bufstart, int bufend,
TextPaint paint, int outerwidth,
Alignment align,
float spacingmult, float spacingadd,
boolean includepad,
TextUtils.TruncateAt ellipsize, int ellipsizedWidth)
第一个参数为需要分行的字符串
第二个参数为需要分行的字符串从第几的位置开始
第三个参数为需要分行的字符串到哪里结束
第四个参数为对其方式
第五个参数为