PDA

View Full Version : Can some one tell me how set maxLength in anko



thomas9059
08-20-2017, 09:27 AM
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

Dark Photon
08-20-2017, 12:26 PM
This question doesn't have anything to do with OpenGL, correct? (Anko link (https://github.com/Kotlin/anko/))