Android widget that displays an arbitrary image or drawable, such as an icon.
Questions tagged [imageview]
9865 questions
2
votes
2 answers
Is it possible to add images programmatically?
I have a web service where I read various information from. One of these pieces of information is the name of an image. I have all the images stored locally in the drawables folder. What I have done right now is I read the string of the image I need…

skoko
- 1,431
- 2
- 12
- 13
2
votes
2 answers
ImageView elevation: shadow is cropped at the bottom
I want to add shadow around ImageView
I tried elevation

user924
- 8,146
- 7
- 57
- 139
2
votes
1 answer
ImageView Android RAM
A followup from my original question.
Is there a way to use ImageViews in android apps without using a lot of RAM?
In the original question I found that my app used a lot of RAM, and found that it was the ImageViews which I used that too up all the…

Bastaix
- 835
- 3
- 12
- 23
2
votes
0 answers
ImageView with rounded corners, that look like Samsung Icons (Squircle shape)
I have an ImageView which shows user's profile photo and I want it to have this type of frame:
I searched for "rounded ImageView" and "ImageView with rounded corners" and almost looked through all the Q/A in SO but couldn't find what I was looking…

amira
- 416
- 1
- 7
- 24
2
votes
1 answer
Get constraint's id programmatically
Given the following xml:

Guy Sharon
- 47
- 7
2
votes
2 answers
Fitting rotated ImageView into Application Window / Scene
In JavaFX I am trying to show an rotated ImageView in an Application Window.
Therefore I have put it into a stackPane to have it always centered and I have bound the widths/heights of the ImageView and the stackPane to the scene's width/height to…

Ingo
- 605
- 6
- 10
2
votes
2 answers
Why images are displayed with light grey background, when it has white android?
When I am displaying image in ImageView using Glide, grey color is added in background.I have tried setting background color to transparent and even white in ImageView in my xml file..
But It is still not working..It is happening with every image…

user3792429
- 203
- 1
- 16
2
votes
1 answer
How to get path data from image in gallery by using Content Resolver
I already successfully get the image from gallery but i cannot upload the image to server because the file is null. is there any code that i miss to add? i add imageView.getPath, but i only get the path from camera image to server, and get null…

Much
- 165
- 1
- 1
- 16
2
votes
1 answer
How can I find out when a gesture has finished
Is there a possibility for Android to detect if an gesture (swipe, zooming, etc.) has finished?
I need that in the onDraw method of my ImageView to optimize the performance.
Thanks!

Patrick
- 678
- 8
- 16
2
votes
1 answer
How to display a ImageView pixelated without interpolating low res files?
I want to load a ImageView with a png file with low resolution. I want to display the pixels but the ImageView is displaying it blurry with interpolation. How can this be avoided? I want to display all the pixels.
This is the way I'm displaying the…

NullPointerException
- 36,107
- 79
- 222
- 382
2
votes
2 answers
Show updated images in the same url using Kingfisher ios
I am using Kingfisher for loading image view with images from Url. Sometimes, the same url will updated with new image.
So I am using below code to load the imageview,
profileImage.kf.setImage(with: profileUrl, placeholder:…

RP89
- 101
- 3
- 13
2
votes
2 answers
ImageView has the setImageResource method. What is the getImageResource method?
Using intents to click on an element from the RecyclerView, with a small image on each element, to go to another screen/activity which will show the enlarge picture.
For example, Textview has setText and getText.
How about ImageView? They have…

Junior Dev539
- 21
- 6
2
votes
4 answers
set ImageView src via ListAdapter
Hey there,
i have one question..
i try to write an android app with java.
i have a hashmaplist(1), saved in a list(2).
to show the list(2) entrys(those, who saved in hashmap(1)), i use a ListAdapter object.
everything works fine, except of the…

Prexx
- 2,959
- 5
- 31
- 48
2
votes
1 answer
my ListView is not showing my image
I have to make a listview from database and i want to put a image that is clickable in my list.I use CursorAdapter for it,but my image does not show on my list.Here is my BooksCursorAdapter
public class BooksCursorAdapter extends CursorAdapter {
…

Prox
- 51
- 8
2
votes
1 answer
Loading image selected from internal storage using Uri not working
I tried to select an image from internal storage and load that using imageview. It selects the image but not displaying it.

Sanjeev Sree
- 47
- 1
- 6