Anko DSL


#1
override fun createView(ui: AnkoContext<InternetActivity>): View = with(ui) {
        verticalLayout {
            val queryField = editText {
                lparams(weight = 21.0f)
                hint = "Search..."
            }
        }
    }

I got an error at lparams. It says to specify the explicit receiver. How do i do that?


#2

Maybe

this@editText.lparams(weight = 21.0f)