I want to display a dynamic multiple lines text and an icon at the end of the last line. This icon can be animate. I try some ways but not success yet. How should I do?
Example view which had the same idea with my layout
I want to display a dynamic multiple lines text and an icon at the end of the last line. This icon can be animate. I try some ways but not success yet. How should I do?
Example view which had the same idea with my layout
Copyright © 2021 Jogjafile Inc.
In the
Text
composable you can use theinlineContent
to define a map of tags that replaces certain ranges of the text. It's used to insert composables into text layout.Then using a
Placeholder
you can reserve space in text layout.Something like:
It is a composable so you can use your favorite animation.
Just an example:
and change the Icon to