Skip to content

Commit c91225b

Browse files
committed
see 04/14 log
1 parent d362237 commit c91225b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

utilcode/src/main/java/com/blankj/utilcode/util/SpannableStringUtils.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,18 @@ public Builder setBlur(float radius, Blur style) {
415415
return this;
416416
}
417417

418+
/**
419+
* 追加样式一行字符串
420+
*
421+
* @param text 样式字符串文本
422+
* @return {@link Builder}
423+
*/
424+
public Builder appendLine(@NonNull CharSequence text) {
425+
setSpan();
426+
this.text = text + System.getProperty("line.separator");
427+
return this;
428+
}
429+
418430
/**
419431
* 追加样式字符串
420432
*

0 commit comments

Comments
 (0)