Hi, anyone know how to set multiple layout params ...
# android
r
Hi, anyone know how to set multiple layout params in anko? i am doing this but didnt works
Copy code
relativeLayout {
            id = R.id.container
            padding = dip(10)
            lparams(width = matchParent, height = dip(70))

            imageView(R.drawable.vc_logo_black) {
                id = R.id.toolbarIcon
            }.lparams { alignParentRight() }.lparams { centerInParent() }

            textView {
                id = R.id.toolbarLocation
                text = "Hello World"
            }.lparams { alignParentRight() }.lparams { centerInParent() }
        }