文件名称:Android代码-让 TextView SpannableStringBuilder变得更加容易
文件大小:118KB
文件格式:ZIP
更新时间:2022-08-25 23:51:07
Android代码
Spanny A helper class that extends SpannableStringBuilder and adds methods to easily mark the text with multiple spans. Download You can just copy the class to your project or grab it via Gradle: compile 'com.binaryfork:spanny:1.0.4' Usage Use .append(text, span) to add and mark the text with any span: Spanny spanny = new Spanny("Underline text", new UnderlineSpan()) .append("nRed text", new ForegroundColorSpan(Color.RED)) .append("nPlain text"); textView.setText
【文件预览】:
Spanny-master
----gradlew(5KB)
----settings.gradle(26B)
----spanny()
--------src()
--------spanny.iml(7KB)
--------.gitignore(21B)
--------build.gradle(543B)
--------proguard-rules.pro(667B)
----.idea()
--------misc.xml(3KB)
--------compiler.xml(686B)
--------gradle.xml(660B)
--------.name(6B)
--------modules.xml(458B)
--------copyright()
--------vcs.xml(180B)
----gradle()
--------wrapper()
----README.md(4KB)
----gradlew.bat(2KB)
----Spanny.iml(937B)
----gradle.properties(961B)
----.gitignore(91B)
----app()
--------src()
--------app.iml(6KB)
--------.gitignore(7B)
--------build.gradle(608B)
--------proguard-rules.pro(667B)
----CHANGELOG.md(461B)
----build.gradle(573B)