I am developing a soft keyboard. I want to notify user the maximum text length reached. Is there any way to get maximum text length allowed by current input field in which user is typing ?
getCurrentInputEditorInfo()
returns EditorInfo
object which contain many details including fieldName
, fieldType
, hintText
, etc
But there is no field to get text length limit detail.
The application programmer can set field length limit for his EditText
using following line.
android:maxLength="15"
I am talking about retrieving this information.