Anko DSL

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?

Maybe

this@editText.lparams(weight = 21.0f)