I need to insert a large text in a TextView
, but when pasting the text it does not adapt to the size of the TextView
, because it has exceeded the width of the TextView
and the text is giant, how to fix this?
Note: I need to correct it using the Android Studio visual interface.
To set optimal size of the text in TextView You can use
autoSizeTextType
property. To do it Your TextView must have fixed sizes ormatch_parent
. Then You can useautoSizeTextType
It looks something like this:Results:
TextView height :
150dp
TextView height :
300dp
Here is a short video on YouTube with great explanation