<@U0GSLCF1D>: if I am not wrong you could start wi...
# anko
d
@ribesg: if I am not wrong you could start with class like this
Copy code
class MyCLass : AnkoComponent<Activity> {
        override fun createView(ui: AnkoContext<Activity>) = with(ui) {

            verticalLayout {
                
            }
        }
    }
but then you can’t use
AnkoComponent.setContentView(this.activity)
in your fragment because that function will call
setConentView
on your
Activity
which you don’t want to. You could call
MyClass().createView()
directly but that require passing impl of
AnkoContext