fboldog
06/28/2016, 4:28 PMgetTabAt(i)?.apply {
customView = with(AnkoContext.create(context, this)) {
imageView {
id = R.id.icon
}
}.lparams(dip(64), dip(64))
iconResource = R.drawable.ic_delete
}
……
var TabLayout.Tab.iconResource: Int
get() = throw AnkoException("'TabLayout.Tab.iconResource' property does not have a getter")
set(v) {
setIcon(v)
return
}