我一直在尝试在 Anko 中设置maxLength
,editText
但我找不到合适的功能。
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)
}