That happens because you’re setting the src of the ImageView
instead of the background.
Use this instead:
qImageView.setBackgroundResource(R.drawable.thumbs_down);
Here‘s a thread that talks about the differences between the two methods.
More Related Contents:
- How to load an ImageView by URL in Android? [closed]
- How can I get zoom functionality for images?
- ImageView in circular through XML
- Adding gif image in an ImageView in android
- Custom ImageView with drop shadow
- Caching images and displaying
- Listview click to show image in ImageView
- Show GIF file with Glide (image loading and caching library)
- How to set margin of ImageView using code, not xml
- Android get image from gallery into ImageView
- ImageView be a square with dynamic width?
- ImageView scaling TOP_CROP
- Trying to get the display size of an image in an ImageView
- Changing ImageView source
- How to give hexagon shape to ImageView
- Get Image from the Gallery and Show in ImageView
- Android: how to convert whole ImageView to Bitmap?
- android:select image from gallery then crop that and show in an imageview
- Loading remote images
- How to make an image fit into a circular frame in android
- How to set an imageView’s image from a string?
- Android Drag and drop images on the Screen?
- Android image view matrix scale + translate
- Set visibility of progress bar gone on completion of image loading using Glide library
- How to get the Dimensions of a Drawable in an ImageView? [duplicate]
- Set ImageView’s max width as a percent of its parent’s width
- I want to transfer the image from one activity to another
- How to highlight ImageView when focused or clicked?
- How to show imageView full screen on imageView click?
- How to place an imageview on top of another imageview in android