In my project, I have to display both remote and local images. I can display remote images using Volley NetworkImageView.
NetworkImageView networkImgVw = (NetworkImageView)rootView.findViewById(R.id.niv);
networkImgVw.setImageUrl(url, imageLoader);
However, I fail to use NetworkImageView to display local images.
Bitmap bitmap = BitmapFactory.decodeFile(path, bmOptions);
coverImgVw.setImageBitmap(bitmap);
Does anybody have a solution to this problem ?