I want to find the total number of characters that can fit in one line of a current Jetpack compose Text
Any field where I can get this information. Thanks
I want to find the total number of characters that can fit in one line of a current Jetpack compose Text
Any field where I can get this information. Thanks
Copyright © 2021 Jogjafile Inc.
You probably assume that the
Text()composable is some placeholder (box) with fixed dimensionsthen you place some text into it
and ask us, how many characters you may use to fit this placeholder.
But things work the other way:
Text()composable without text string in it.Text()composable occupy as much space, as it can.So, for example, it occupies the whole screen, if there are no other elements, in spite of the text consist only of 1 character.
So your question in its current form has no sense.
You probably wanted to solve one thing, but ask us about the other – see What is the X-Y problem? and possibly edit your question.