I have been trying to set maxLength for edittext in ANKO but I am unable to find right function.
editText()
{
id = R.id.et2
hint = "age"
inputType = android.text.InputType.TYPE_CLASS_NUMBER
maxLines= 1
}.lparams {
below(R.id.et1)
alignParentLeft()
leftOf(R.id.bt1)
}
Can someone help me with this. Thanks