Skip to content

Releases: TheMelody/ComposeTextEffect

v1.0.0

25 May 05:39
daa1997
Compare
Choose a tag to compare

注意

  • 可折叠的组合项Text,依赖如下:
  implementation "io.github.TheMelody:expandable_text_compose:1.0.0"
  • 代码使用方式如下:
  ExpandableText(
	modifier = Modifier
	.verticalScroll(rememberScrollState())
	.padding(16.dp)
	.fillMaxWidth(),
	text = buildAnnotatedString { append("请输入你的超长文本,来吧展示,省略更多内容...") },
	textStyle = TextStyle(color = Color.Black, fontSize = 14.sp),
	expandStateText = "展开",
	collapseStateText = "收起"
  )