Android代码-kotlin实现的Android Spannable API

时间:2022-08-26 04:21:20
【文件属性】:

文件名称:Android代码-kotlin实现的Android Spannable API

文件大小:311KB

文件格式:ZIP

更新时间:2022-08-26 04:21:20

Android代码

Android Spannable in kotlin > Kotlin wrappers around SpannableStringBuilder. Inspired by binaryfork's Spanny. SpannableStringBuilder API is attractive, it's a nice way to styling text without split your text into multiple views, but the usage of the raw API is awful. Let's say a simple example: Spans are hard? The raw SpannableStringBuilder API: val builder = SpannableStringBuilder() builder.append("Spans ") var str = "are " builder.append(str) builder.setSpan(StyleSpan(Typeface.BOLD), builde


【文件预览】:
Kpan-master
----gradlew.bat(2KB)
----gradlew(5KB)
----gradle.properties(730B)
----sample()
--------src()
--------.gitignore(7B)
--------build.gradle(555B)
----screenshots()
--------sample.png(148KB)
----span()
--------src()
--------.gitignore(7B)
--------build.gradle(2KB)
----LICENSE(11KB)
----gradle()
--------wrapper()
----.gitignore(87B)
----README.md(5KB)
----settings.gradle(27B)
----build.gradle(508B)

网友评论