java - ImageView.findViewById on a null object reference -


this question has answer here:

i've made simple mistake cannot figure out how correct it. it's null object reference .

mainactivity

layout

thanks advice !

instead

imageview = (imageview)imageview.findviewbyid(r.id.simplicity_bg_id); 

replace with

imageview = (imageview) findviewbyid(r.id.simplicity_bg_id); 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

javascript - How to bind ViewModel Store to View? -

javascript - Solution fails to pass one test with large inputs? -