Join Slack
Just use the internal variable `itemView` to refer to the view while making changes
# android
s
Seri
08/28/2018, 6:15 PM
Just use the internal variable
itemView
to refer to the view while making changes
k
kingsley
08/29/2018, 8:45 AM
Don’t do this. It will use
findViewById
every time, which can be quite expensive Here’s what you want to do instead:
https://kotlinlang.org/docs/tutorials/android-plugin.html#layoutcontainer-support
s
Seri
08/29/2018, 4:30 PM
Ah, I wasn’t aware. Thanks for the heads-up!
👍 1
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by