How to use linearLayout in verticalLayout?
wanghh2000 opened this issue · comments
Wang Hai Hui commented
I use linearLayout in verticalLayout, but elements cannot be show except elements in linearLayout.
Doesn't it support the use of linearLayout and verticalLayout as below?
verticalLayout {
linearLayout {
orientation = LinearLayout.HORIZONTAL
backgroundResource = R.drawable.phonebackgroud
owner.chkSave = checkBox("AutoSave", checked = true) {
textSize = 18f
}
owner.chkSecurity = checkBox("Security", checked = true) {
textSize = 18f
}
}
textInputLayout {
owner.txtServer = editText {
isFocusableInTouchMode = true
inputType = InputType.TYPE_CLASS_TEXT
}
}
textInputLayout {
owner.txtAccount = editText {
isFocusableInTouchMode = true
inputType = InputType.TYPE_CLASS_NUMBER
}
}
textInputLayout {
owner.txtPassword = editText {
isFocusableInTouchMode = true
inputType = InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_PASSWORD
}
}
}
Wang Hai Hui commented
Solved.
linearLayout {
owner.chkSave = checkBox("保存登录信息", checked = true) {
textSize = 18f
textColor = Color.WHITE
}
owner.chkSecurity = checkBox("安全", checked = true) {
textSize = 18f
textColor = Color.WHITE
}
}.lparams(width = dip(300), height = dip(40)) {
}