所以我使用Text()像这样的可组合项:
Text(
text = "this is some sample text that is long and so it is
ellipsized",
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
Run Code Online (Sandbox Code Playgroud)
并且它正确地省略了文本:
问题是我想要See More在省略号末尾有一个标签,提示用户展开可见的文本框。我该如何添加呢?
android kotlin android-jetpack-compose android-jetpack-compose-text