Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- verticalLayout {
- padding = dip(20)
- ...
- val username = editText {
- id = R.id.usernameEditText
- hintResource = R.string.sign_in_username
- }.lparams(width = matchParent, height = wrapContent)
- val password = editText {
- id = R.id.passwordEditText
- hintResource = R.string.signIn_password
- }.lparams(width = matchParent, height = wrapContent)
- button {...}.lparams(width = matchParent, height = wrapContent)
- }.applyRecursively { view ->
- when (view) {
- is EditText -> view.textSize = 24f
- }
- }
Add Comment
Please, Sign In to add comment