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 -

command line - How can a Python program background itself? -

android - How to prevent keyboard from closing when bottom dialog is open? -