skennedy
11/03/2018, 12:15 AMUnnecessaryApply
that i'm not sure about.
val view = FrameLayout(context).apply {
background = ColorDrawable(ContextCompat.getColor(context, R.color.white))
}
This is saying it's unnecessary. But I'm not sure how I'd both set the background and return the FrameLayout
without an apply
.mauin
11/03/2018, 12:19 AMskennedy
11/03/2018, 12:19 AMskennedy
11/03/2018, 12:21 AMmauin
11/03/2018, 12:29 AM