Android Studio edittext Specify a character limit for each line in multiple lines

Asked 2 years ago, Updated 2 years ago, 90 views

I want to make it possible to enter a total of 10 lines and 8 letters per line in EditText What's the way?

android text multiline

2022-09-22 13:37

2 Answers

How about giving EditText's maxLength to 80 and using TextWatcher to give an opening letter for every 8 characters?


2022-09-22 13:37

If I can make 10 of each EditText, For each XML source, all you need to do is put a number inside the Android:maxLength=""


2022-09-22 13:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.