Android widget that displays an arbitrary image or drawable, such as an icon.
Questions tagged [imageview]
9865 questions
2
votes
1 answer
Efficiently Drawing over an imageView that resides inside of a fragment in response to a touch event
I have an application in which I display an image in an ImageView that resides in a fragment seen from the activity. I would like to respond to touch events on the ImageView by drawing small dot-like circles centered around the coordinates of the…

Uri Greenberg
- 152
- 1
- 11
2
votes
2 answers
How to make a map selection changing colors in Android?
My goal is have a simples screen with a grey map and each button that you click, one different part of the map get painted.
I try to put the how map in one picture and every time that you hit one button I will make visible one part of the map with…

Canato
- 3,598
- 5
- 33
- 57
2
votes
2 answers
Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value while applying effects to image
I am trying to apply slide, fade and grow effect to my imageview.
Following is my code
@IBAction func fadeIn(_ sender: Any) {
imageView.alpha=0
UIView.animate(withDuration: 1, animations: {
self.imageView.alpha=1
…

Lata Sawant
- 49
- 1
- 8
2
votes
2 answers
Imageview not on correct row after scrolling in Recyclerview
I have an app that displays my e-mail via microsoft graph api.
Everything but 1 things i working fine so far. When the list first loads in, all info is correctly displayed, but when i scroll down, then back up. The imageview of the attachement sits…

G-man
- 79
- 11
2
votes
2 answers
My app background won't fill the screen
How do I make the background image fill the screen? I have tried several different suggestions and nothing seems to work.
Below is the code for my activity_main.xml:

CheetahBongos
- 197
- 9
2
votes
1 answer
ImageView showing grey square instead of image
I've tried several different ways but the imageview still show only a gray square. I'm testing on API 17.
Below are the options I've tried unsuccessfully:
Configured the ImageView in XML to:
fixed width and height; width and height to…

Johny
- 501
- 5
- 16
2
votes
1 answer
How to switch between images in JavaFX
The issue I'm having is this, I am currently messing around with JavaFX and graphics in general with Java, I still consider myself an amateur, and I'm making a small pixel game just to improve my knowledge and experience with graphics. I would like…

CakePuncher
- 31
- 3
2
votes
3 answers
Horizontal RecyclerView of images
Which is the code to obtain a Horizontal RecyclerView of images? I already have the code for horizontal RecyclerView of Strings. I need to have the same but of Images.
I have to create a RecyclerView of 10 horizontal scrollable imageView.
This is…

Mtt95dvlpr
- 145
- 4
- 12
2
votes
2 answers
How to share and save the ImageView from First Activity to Third Activity
Activity 1:I have an imageview in which the images taken from camera and gallery are set and it works fine. In this Activity there is a right click button which will redirect you to second activity.
Activity 2: In this Activity I have four options…

Aastha Doshi
- 147
- 1
- 14
2
votes
3 answers
Android: how to show and move ImageView in TableLayout
I have a grid of TextViews shown inside a TableLayout. When the user taps a TextView I need to change the cell's background by adding an ImageView that will go to another cell when other cells will be clicked.
Which is the best way to do this in…

Cris
- 12,124
- 27
- 92
- 159
2
votes
3 answers
LinearLayout not wrapping image
I've got an ImageView that I've wrapped in a LinearLayout. The LinearLayout has a background drawable which is basically a border, so the effect is that my image has a border around it.
However no matter what I try, I get a big chunk of empty space…

Richard
- 23
- 3
2
votes
2 answers
Make Image in rounded ImageView fit
I have a collectionviewCell with a rounded imageview which shows an icon.
Unfortunately the icons are too big. How can I fit them to fit into the rounded ImageView:
Code
func makeItCircle() {
self.imageView.layer.cornerRadius =…

Mike
- 53
- 10
2
votes
2 answers
Show GIF using Glide in AlertDialog
I want to show GIF using Glide in ImageView, and set this ImageView in AlertDialog.
ImageView gifImageView = new ImageView(context);
Glide.with(context).load(recorder.getPictureFile()).asGif().into(gifImageView);
AlertDialog.Builder share_dialog =…

Corey
- 1,217
- 3
- 22
- 39
2
votes
0 answers
Change the image position inside an ImageView for an animation Swift
Hello I am asking you if it is possible to animate the image position with UIView.animate inside an imageView, which is clip to bounds ?

Jimmy Gonçalves
- 79
- 1
- 2
- 9
2
votes
3 answers
setImageUri is not working
I am using Android 2.2. I am trying following code to run:
Uri uri=Uri.parse("http://bluediamondring-s.com/wp-content/uploads/2010/08/gold-ring.jpg");
File f=new…

Rahul
- 739
- 4
- 15
- 31