https://kotlinlang.org logo
#anko
Title
# anko
s

spragg

07/20/2017, 1:55 AM
Hi, has anyone had any issue with findViewById() with imageView ?
🤔 2
n

nawar

07/22/2017, 12:49 AM
Have you tried
find<ImageView>(R.id.yourImageView)
s

spragg

07/23/2017, 11:25 PM
Thanks Nawar. Turned out that I didn’t have the id Resource set correctly. I’m not able to replicate the issue now. It was odd behaviour because I was getting the root linearLayout instead of the imageView.
n

nawar

07/25/2017, 2:43 AM
Glad it worked! 🙂
3 Views