Specify the number of characters per line in a TextView?

Hi, Is it possible to specify a text view to have 25 characters per line? I tried Android: maxLength = "25", although it shows the first part of the text and the other part disappears .. Thanks

Edit1: I can also put text in EditText .. but I want characters that after 25 characters to go to a new line.

+3
source share
2 answers

yes, it definitely android:maxLength="5"works for TextView to set the maximum number of characters for a TextView. You can also install android:layout_width="130dip"for TextView. This will show the character in abc format ... if the text exceeds the width of the layout.

0
source

All Articles