Android widget that displays an arbitrary image or drawable, such as an icon.
Questions tagged [imageview]
9865 questions
2
votes
3 answers
change the position of a bitmap where ever i touch on screen
I have a large image on the screen and I want to display a small image on that image where I touch the screen. but I do not know how to change the position of the image when I touch on the screen and the small image must display where ever I touch…

sajjoo
- 6,576
- 20
- 65
- 86
2
votes
0 answers
SetImageBitmap on ImageView crashes app after garbage collection
I have a MvxRecyclerView which displays a list of items. When a item is clicked the app navigates to a detail page/activity. The detail page contains some MvxImageView's.
My problem is that after repeating navigation to the detail page and back to…

jooni91
- 41
- 1
- 3
2
votes
2 answers
Add Image overlay on ImageView with custom color
I have an ImageView. I want to add a transparent overlay on top of it, but I have no idea how to do it. For example this is my image:
I want to add my overlay on it so it looks like this:
As you can see there is a black overlay on it, the point is…

Majid Hojati
- 1,740
- 4
- 29
- 61
2
votes
2 answers
Whats the different between srcCompat and background in an ImageView/ImageButton
I have an ImageView in a RelativeLayout. The background of the ImageView is empty and the srcCompat is linked to my image in the drawable folder. In the layout Preview everything looks fine but when I test the app in an emulator or real smartphone…

Yannik Pieper
- 63
- 1
- 11
2
votes
3 answers
Image is not loaded using Glide
I have a vector image. If I want to set the image to ImageView, the picture is not loaded.
code:
Glide.with(this).load(R.drawable.vector_image).into(imageView)
However, when I use:
imageView.setImageDrawable(ContextCompat.getDrawable(this,…

Stepan
- 1,041
- 5
- 23
- 35
2
votes
2 answers
How to load an image into imageView using a Uri and Bitmap Factory
I am passing a Uri to a new activity and trying to use it to create an imageView in the new activity. I use an InputStream and a BitmapFactory to achieve this. My picture keeps showing as black, though, and I am not sure why.
First_Page:
public void…
user6684475
2
votes
1 answer
Adjust Image View to Image (Android Studio)
I would like to know how you adjust the "hitbox" of an ImageView to the Image inside, so that there are no empty spaces around the image. I want to make a game and so it feels odd when you click on an empty space next to the Image but it still…

404response
- 93
- 1
- 8
2
votes
1 answer
RecyclerView item with collection of images
I'm tring to make some like RecyclerView list item image grid. It's has one main big image and some with other sizes. I've idea to use some like other holders for each image count, and choose it in adapter onCreateViewHolder method. But, I think,…

Александр Шевчук
- 1,697
- 2
- 19
- 31
2
votes
2 answers
The application's PagerAdapter changed the adapter's contents
I'm trying to build a pager to display images, sequentially. But I am getting this error.
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged!
Expected adapter item count: 0, found: 1…

Shan PLT
- 63
- 2
- 8
2
votes
3 answers
getDrawable(int) is deprecated and may produce a NullPointerException
I researched online and found related but not very similar information about comparing images and referring to images inside the drawable folder.
However, by following one of the answers I found in stackoverflow, I was able to compare two images and…

heisenberg
- 1,784
- 4
- 33
- 62
2
votes
0 answers
Android Studio: ImageView not showing
I´m new in Java and Android Studio and tried to use a png in my test-application.
Since I own a AMD processor I have to use my real device (Galaxy S6) to run it. Strangely, the Image that I used shows up in Android Studio, plus it´s in the right…

hawk
- 21
- 4
2
votes
4 answers
Download images via "Service in Android"
I'm very new to android programming and working on an Android app.
I have 2 teams - A and B.
I have a Activity A for team A where I have 3 ImageView to place images from Server. Each time any user from team B uploads images to the server, I want…
user4512274
2
votes
1 answer
My interface class don't work when I call it from a fragment
I'm trying to implement this code in my project but is not working RecyclerView: how to catch the onClick on an ImageView?:
I've implemented a interface to handle onclick imageview and onclick row in a recyclerview. The problem is that when I try to…

S.P.
- 2,274
- 4
- 26
- 57
2
votes
2 answers
Object Not Fount Exception when I am trying to set FirebaseStorage Image file in ImageView in Android
I am developing an app where I want to display uploaded image from firebase storage by setting it to an Imageview using url. I am using following code to get this done.
StorageReference storageReference =…

Sachin Kumar Singh
- 43
- 6
2
votes
0 answers
How to put Google map like marker on image?
I want to put marker on image like Google map, with functionality like zooming,scrolling of image,dynamically adding of marker on image and marker drag & drop on image.
Marker can not be move from there position when image gets zoom.
On marker…

ritesh pandhurkar
- 21
- 5