Using java, to create a control dynamically we use something like
TextView textview=new TextView(getApplicationContext());
how can the same be done in Kotlin? var textview = TextView
does't work, nor does var textview as TextView
unfortunately, haven't even encountered any good kotlin tutorials for android.
update-Actually am trying to create dynamic listview with a custom layout.