How to control EditText with a lot of text

RonNYCRonNYC Member ✭✭✭

Users could paste a lot of text into this text box. Are there settings that control how many lines of text are displayed? Like some fading out (as an example). Right now when I paste a lot of text into the EditText box, the box expands to take up the entire screen.

Tagged:

Answers

  • DavidAllenDavidAllen USDeveloper Group Leader ✭✭✭

    Take a look at the Android sdk documentation for EditText and TextView and the Xamarin sdl docmentation for EditText and TextView. They will provided you with most of the information you require. You will see that there is a property called MaxLines which will set the maximum number of lines the control will expand to. This can be set in the xml layout: android:maxLines="4" or in codeMaxLines = 4.

Sign In or Register to comment.