Found a couple of online solutions for Auto Scale TextView Text to Fit within Bounds
But the problem is that the transfer of text to the next line is carried out independently (randomly) and the symbol \n
is not perceived as either. If for each line you create a separate TextView, then each line has a different font size depending on the length. Ie if I want to print a verse, then in each line there will be a different font size depending on the length of the line. Are there any other ways? Can you make an auto scale to the entire layout in which the lines are? I did not find a way :(. And by the way, neither solution works with Russian characters
wrap_content
suitwrap_content
for width and height and line wrapping with the<br>
tag and setting text viaHtml.fromHtml()
? - Yuriy SPb ♦Layout
. In one phone in another information from the user. As you can see, allTextView
have different fonts and it looks awful. The font is changed so that all the text got into the line. - Bogdan Shulgaдлинный-длинный тек...
? - Yuriy SPb ♦TextView
per line-number, shorten the long text with dots (this is theandroid:ellipsize
) and, if I click on the number,android:ellipsize
it in a separate dialog. - JuriySPb ♦