I have a file called nochart.png in /drawable.
nochart.png
/drawable
How can I set this to an ImageView?
ImageView
chartImageView.setImageDrawable(R.drawable.nochart);
Does not compile.
Use:
chartImageView.setImageResource(R.drawable.nochart);