private class FakeCardDrawable constructor(
context: Context) : CardDrawable(context) {
var text: String? = null
var backgroundColor = 0
var textColor = 0
override fun setColors(
backgroundColor: Int, textColor: Int, animate: Boolean
) {
this.backgroundColor = backgroundColor
this.textColor = textColor
}
fun setText(text: String) {
this.text = text
}
}
It complains saying "Platform declaration clash: The following declarations have the same JVM signature(setText..)