EditText : set number of characters programmatically

后端 未结 4 1109
伪装坚强ぢ
伪装坚强ぢ 2020-12-29 06:26

I have a EditText , and I would like to restrict the number of characters which could be inputted in this EditText, and make this

4条回答
  •  暖寄归人
    2020-12-29 07:00

    Try this my friend easy game easy life InputFilter[] FilterArray = new InputFilter[1]; FilterArray[0] = new InputFilter.LengthFilter(5); input.setFilters(FilterArray);

提交回复
热议问题