I think it is becoming common knowledge that using
@JvmOverloads
for custom views on Android can bite you if you don’t do it properly. What I haven’t seen in this discussion yet, is that most probably (because in Kotlin
final
is the default), you only need the 2 constructors in your custom view, and so you should be just fine using