Mark
02/28/2019, 8:35 AMvar background: Drawable
and I want to create a Kotlin class implementing this interface and extending a java class that already defines setBackground(Drawable)
and Drawable getBackground()
. In Java, I don't need to do anything because the new subclass automatically implements these interface methods. In Kotlin, I get a compile error that the new subclass does not implement those interface methods. How to achieve this?diesieben07
02/28/2019, 8:58 AMdiesieben07
02/28/2019, 8:59 AMdiesieben07
02/28/2019, 8:59 AMMark
02/28/2019, 8:59 AMdiesieben07
02/28/2019, 9:00 AM@JvmName
on the interface, but I am not sure if that works.Mark
02/28/2019, 9:02 AMMark
02/28/2019, 9:02 AMdiesieben07
02/28/2019, 9:02 AM