Computer scienceMobileAndroidUser InterfaceGraphics

Graphics overview. Implementing a Drawable

Fix the setter

Report a typo

Imagine our Drawable has one more setter:

var typeface: Typeface?
    get() = paint.typeface
    set(typeface) {
        if (paint.typeface != typeface) {
            paint.typeface = typeface
            paint.shader = null
            ________________
        }
    }

What do we need to add if we want it to work properly?

Enter a short text
___

Create a free account to access the full topic