你设置的字符的最大数量是Android的EditText输入怎么办。我看到setMaxLines,setMaxEMS,但没有对字符数。
How do you set the max number of characters for an Android EditText input. I see setMaxLines, setMaxEMS, but nothing for number of characters.
在XML,你可以添加此行到的EditText
查看
,其中140个字符的最大数目:
In XML you can add this line to the EditText
View
where 140 is the maximum number of characters:
android:maxLength="140"