E
E
eegmak2021-07-08 18:57:01
Android
eegmak, 2021-07-08 18:57:01

How to set line wrap in textview?

Does textview support "smart" line breaks?
Is it possible in textview to make it so that if the word does not fit, it is displayed on a new line?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Prokhorovich, 2021-07-09
@eegmak

I advise you to read:
https://developer.android.com/reference/android/wi...
"Smart" transfers, as far as I know, are not available. If this is required, then you will have to write your own implementation (or look for something similar on github, someone probably already wrote it).
For the second part of the question, look for the singleLine attribute in the documentation, in your case you need to set it to False, at the same time you need to disable horizontal scrolling.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question