没有合适的资源?快使用搜索试试~ 我知道了~
SpannableStringParser:
共84个文件
png:38个
kt:19个
xml:11个
需积分: 9 0 下载量 69 浏览量
2021-05-13
08:33:13
上传
评论
收藏 443KB ZIP 举报
温馨提示
在Android中,我们使用Spans来设置文本样式。 跨度是可以应用于文本部分的标记对象。 它要求我们处理要设置样式的文本的索引。 val string = SpannableString ( " Text with a foreground color span " ) string.setSpan( ForegroundColorSpan ( Color . RED ), 12 , 28 , Spanned . SPAN_EXCLUSIVE_EXCLUSIVE ) 但是,如果文本是动态的并且文本的样式也是动态的,该怎么办。 现在,对我们来说,处理索引和样式变得非常困难。 这是SpannableStringParser帮助我们的地方。 您可以指定要设置样式的文本以及如何在字符串本身内设置样式,然后使用spannify()扩展功能对其进行样式设置。 val string = "
资源推荐
资源详情
资源评论
收起资源包目录
SpannableStringParser-master.zip (84个子文件)
SpannableStringParser-master
.gitignore 935B
images
have_a_look_2.png 9KB
supported-properties-superscript-1.png 2KB
supported-properties-text-size-3.png 2KB
supported-properties-url-1.png 8KB
supported-properties-font-family-3.png 2KB
supported-properties-text-alignment-2.png 2KB
supported-properties-text-alignment-1.png 2KB
supported-properties-background-color-1.png 3KB
supported-properties-text-style-2.png 2KB
supported-properties-text-color-2.png 3KB
supported-properties-text-decoration-2.png 2KB
supported-properties-text-color-1.png 5KB
supported-properties-line-background-color-1.png 3KB
logo.png 181KB
supported-properties-line-background-color-2.png 3KB
supported-properties-text-decoration-1.png 2KB
have_a_look_3.png 9KB
supported-properties-font-family-2.png 3KB
supported-properties-font-family-1.png 2KB
supported-properties-background-color-2.png 3KB
have_a_look_1.png 9KB
supported-properties-subscript-1.png 2KB
supported-properties-text-size-2.png 5KB
supported-properties-line-height-1.png 18KB
supported-properties-text-style-1.png 2KB
supported-properties-text-size-1.png 3KB
supported-properties-text-alignment-3.png 2KB
supported-properties-text-style-3.png 3KB
sample
build.gradle 884B
src
main
AndroidManifest.xml 769B
res
mipmap-xhdpi
ic_launcher_round.png 7KB
ic_launcher.png 4KB
mipmap-mdpi
ic_launcher_round.png 3KB
ic_launcher.png 2KB
layout
activity_main.xml 649B
mipmap-xxhdpi
ic_launcher_round.png 10KB
ic_launcher.png 6KB
drawable
ic_launcher_background.xml 5KB
mipmap-anydpi-v26
ic_launcher_round.xml 270B
ic_launcher.xml 270B
drawable-v24
ic_launcher_foreground.xml 2KB
mipmap-hdpi
ic_launcher_round.png 5KB
ic_launcher.png 3KB
mipmap-xxxhdpi
ic_launcher_round.png 15KB
ic_launcher.png 9KB
values
strings.xml 84B
colors.xml 208B
styles.xml 383B
java
com
hitanshudhawan
spannablestringparser
sample
Utils.kt 624B
MainActivity.kt 2KB
proguard-rules.pro 751B
pre-commit 543B
settings.gradle 30B
build.gradle 857B
library
build.gradle 2KB
src
main
AndroidManifest.xml 63B
res
values
strings.xml 70B
java
com
hitanshudhawan
spannablestringparser
Constants.kt 239B
lexer
Lexer.kt 2KB
Token.kt 135B
TokenType.kt 293B
Utils.kt 1KB
spanner
Spanner.kt 6KB
SpannableStringParser.kt 694B
parser
Node.kt 145B
Declaration.kt 130B
FiniteAutomaton.kt 3KB
Parser.kt 4KB
formatter
Formatter.kt 2KB
test
java
com
hitanshudhawan
spannablestringparser
lexer
LexerTest.kt 36KB
spanner
SpannerTest.kt 28KB
TestingUtils.kt 9KB
parser
ParserTest.kt 46KB
formatter
FormatterTest.kt 8KB
proguard-rules.pro 751B
gradlew 5KB
LICENSE 11KB
README.md 9KB
gradlew.bat 2KB
gradle.properties 754B
gradle
wrapper
gradle-wrapper.properties 232B
gradle-wrapper.jar 53KB
.circleci
config.yml 582B
共 84 条
- 1
资源评论
老盐蛋炒饭
- 粉丝: 27
- 资源: 4829
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功