https://kotlinlang.org logo
#android
Title
# android
r

radityagumay

09/09/2017, 5:18 PM
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() }
        }