Android widget that displays an arbitrary image or drawable, such as an icon.
Questions tagged [imageview]
9865 questions
2
votes
2 answers
Setting Background to Imageview
I am creating a dynamically Imageview.
ImageView btnSend = new ImageView (this);
I need to put a layout that contains the states of the images, this is the xml:
xml version = "1.0" encoding = "utf-8"?>

seba123neo
- 4,688
- 10
- 35
- 53
2
votes
0 answers
Android ImageView PostInvalidate not working all the time
I have extended an ImageView in Android where I download an image, and when the image arrives I invalidate the view to get a redraw. If I use caching it's not working all the time, so I suspect that android is ignoring some invalidate commands if…

fred_
- 1,486
- 1
- 19
- 31
2
votes
3 answers
How to show the imageview in right hand side edge(i.e) before the logout icon?
I want to show profile picture on Action Bar just before logout icon but its showing the image just after the App title. I have used Image View and Picasso for load image from server using volley. How can achieve this…

Moin Khan
- 674
- 2
- 9
- 27
2
votes
5 answers
Loading image from server using glide in viewholder
public class MyAdapter_home extends RecyclerView.Adapter {
private List data;
private Listdata2;
private int rowLayout;
private Context context;
PopupMenu popupMenu ;
public…

Tanvir Durlove
- 768
- 2
- 9
- 21
2
votes
1 answer
Animate ImageView saturation
I am trying to animate some imageviews from color to grayscale and later from grayscale back to full.
This works fine but it doesn't animate:
ColorMatrix matrixGrey = new ColorMatrix();
matrixGrey.setSaturation(0);
…

Chris Myll
- 21
- 1
2
votes
1 answer
Android Glide ImageView ScaleType Matrix Centering
I'm using Glide 4.0 to load an image into an ImageView with scaleType="matrix" for pan and zoom functionality. The image does not load centered. If it is tall it loads to the left and if it is wide it loads at the top (see pictured). I've tried the…

Stephen Johnston
- 21
- 6
2
votes
4 answers
How to crop two different images in the same activity with different parameters in Android?
I am using this Crop library by SoundCloud. Selecting one imageview, slecting image, cropping and showing the result in the imageview works fine. But now I am trying to do it with two different imageviews with different specifications. I am not…

Steve C.
- 1,333
- 3
- 19
- 50
2
votes
0 answers
how to make a perfect Layout for different Screen sizes that uses multiple ImageViews with different sources?
How do I make a Layout that shows Multiple ImageViews with Different image-sources of different size, to appear perfectly on different screens i.e 5" or 5.2" or 3.7".
I'm working on a Linear layout
here is part of my layout file.

Mohd Zaid
- 659
- 6
- 14
2
votes
1 answer
ImageView not showing image if no records present
It's really weird the problem I am facing. I am trying to show image if no records available. But image not getting visible.
Here is the flow.
I have content_main.xml in which I have one recycle view, one relativeLayout for permission and one…

Sandip Armal Patil
- 6,241
- 21
- 93
- 160
2
votes
1 answer
JavaFX: should I use static Images with multiple ImageViews
I'm building a board game type game in JavaFX. Different GameObjects have different ObjectTypes. I'm currently storing a few static Images and referencing them when I need a new ImageView.
public class GameObject extends ImageView {
private static…

paragon
- 23
- 5
2
votes
2 answers
Unable to load profile image and header background from URL
I followed this tutorial step by step but when I want to load profile image and header background nothing displayed. I added internet permission and wifi is on and initialized drawerimageloader. What could the problem be?
Main activity:
import…

Yusof
- 43
- 6
2
votes
0 answers
IllegalStateException when altering bitmap
I'm trying to alter a bitmap, but when I call these functions, I get an IllegalStateException at the line bmp.setPixel(i, j, Color.rgb(red, green, blue));
The full code for that method to alter the pixels is:
Bitmap darken(Bitmap bmp) {
for (int…

Stephen Burns
- 162
- 2
- 17
2
votes
3 answers
Loading Image into ImageView with Glide
I have an app which loads images from api into my imageView which is in my RecyclerView.
Here is my ImageView…

S.Aslpour
- 86
- 1
- 1
- 10
2
votes
0 answers
Is it possible to use the default android loading animations on an ImageView?
I know android uses their own loading animations through that are included with the android.jar...however I have not been able to successfully get them to work with an ImageView correctly. For instance, the following code gives me an error in my…

ninjasense
- 13,756
- 19
- 75
- 92
2
votes
2 answers
Nested Recyclerview of Images not clicked
As shown in image it have recyclerview of list and each recyclerviews item has again new recyclerview which contains list of images. the red area is getting captures click event but from same item nested recyclerview area/item not getting clicked.
…

Mohsin Patel
- 226
- 1
- 15