Skip to content
RED SAG Skills
easyStudy question · answer published in Android interview questions, so no pointsandroidkotlinscope-functions

Configuring an object with apply

What does this expression return?

val paint = Paint().apply {
    color = Color.RED
    strokeWidth = 4f
    style = Paint.Style.STROKE
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions