damianpetla
03/11/2016, 1:45 PMclass 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