feat:android input add maxLength

This commit is contained in:
刘涛
2020-04-30 16:36:28 +08:00
committed by osborn
parent b169f581d3
commit b7da580842
11 changed files with 50 additions and 4 deletions

View File

@@ -6,10 +6,12 @@ class InputDemo extends Panel {
scroller(
vlayout(
[
title("Input Demo"),
title("Demo"),
(new Input).also(it => {
it.layoutConfig = layoutConfig().just().configHeight(LayoutSpec.FIT)
it.width = 300
it.maxLength=10;
it.multiline = false
it.hintText = "HintText"
it.textAlignment = Gravity.Left
@@ -46,4 +48,4 @@ class InputDemo extends Panel {
).in(root)
}
}
}