Questions tagged [imageview]

Android widget that displays an arbitrary image or drawable, such as an icon.

9865 questions
2
votes
1 answer

Android ImageView flipping animation

I have to show one animation on ImageView. It will like card flipping. The ImageView showing X image will flip and will show Y image. How can I do the same? Any idea?
dev_android
  • 8,698
  • 22
  • 91
  • 148
2
votes
4 answers

onActivityResult with ImageView

I have a method to take a photo, take the sample of the vertical form just as I want, the horizontal lap and save the vertical photograph just as I wish for the exercise exercises, Activity called ViewerActivity and it is here Where the problem…
Devix
  • 432
  • 5
  • 16
2
votes
1 answer

How to listen onClick events on complex Images on Android

I have the following image: I need to change the color of the circles once it is clicked. The image is a SVG Should work on Android API 17+ and if possible for tablets as well What is a smart/effective way to achieve that? The possible solution I…
Renaro Santos
  • 403
  • 1
  • 7
  • 19
2
votes
0 answers

How to pick image from camera and gallery , crop it and set to image view

Please help me i have a written a code so far that can pick an image from both camera and gallery and display it, but i find it difficult to crop it. I am trying to use a third party android library called android image cropper, but finds it…
2
votes
2 answers

Rotating a bmp and displaying it right-side-up

I have an app that snaps a picture and displays the picture on an Imageview. The problem is, I can only snap a pic in landscape mode in order for the bmp to be displayed right side up - Is there a way I can rotate it to right side up if the pic is…
Sapp
  • 1,793
  • 7
  • 29
  • 51
2
votes
1 answer

Android: Rotate image by dragging a specific part of it

I have this ImageView: I need to be able to rotate the whole image (The circle and the two "30" circles) when I drag the outside circles around. It should rotate only if I start dragging from the outside "30" circles They should all rotate around…
Tal Mantelmakher
  • 994
  • 1
  • 7
  • 23
2
votes
1 answer

Downloading two images at the same time with Picasso and using Target. But doesn't finish and load image

So I'm downloading two images using Picasso at the same time, as follows: Picasso.with(this).load(Constants.SERVER_HOME_PAGE_TOP_IMAGE_URL).into(new Target() { @Override public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom…
huey77
  • 643
  • 1
  • 9
  • 24
2
votes
2 answers

Divide an Image to a clickable parts

I'm trying to divide one image to a more than one clickable part. for example, if the image is a body image, and I tapped the head, it should take me to a different the HeadViewController, but if I tapped on the left hand, it should take me to a…
mahdi
  • 439
  • 3
  • 15
2
votes
1 answer

How do I display this image in Android?

How do I display an image with the following configuration in Android? Retain original aspect ratio (the image can be scaled, but not stretched) Fill the width of the parent Aligned to the bottom of the parent The following does not…
hpique
  • 119,096
  • 131
  • 338
  • 476
2
votes
1 answer

android.view.InflateException: Binary XML file line #55: Binary XML file line #55: Error inflating class

Im new with android. I am developing an app for a Commercial Kitchen Equipment supplier. I am particularly having problems on one section. this activity products_1.xml layout resource file. I have created a linear layout with the products as…
2
votes
2 answers

How to extend ImageView

I need to create my own ImageView. This is my class: public class Brick extends ImageView implements Serializable{ public Brick(Context context) { super(context); } public Brick(Context context, AttributeSet attrs) { …
MDP
  • 4,177
  • 21
  • 63
  • 119
2
votes
1 answer

Img(ImageView) moving randomly within screen with onTouch onDrag listener

EDIT: Cliffnote of what i want accomplished straight to the point, My XML set up is has 2 linearview (top, bottom) 1. I want my img to stay within screen when moving 2. Moving continuously randomly 3. Have it clickable/draggable 4. Have the img get…
Mark Ligot
  • 67
  • 7
2
votes
1 answer

How to use okhttp to put a validate code to imageView?

Request request = new Request.Builder() .url(url) .addHeader("Cookie", "JSESSIONID="+sessionId) Response response = client.newCall(request).execute(); if (response.isSuccessful()) { InputStream inputStream =…
刘恩硕
  • 21
  • 4
2
votes
2 answers

Saving an image from imageview into specific gallery folder API 23

Well, basically what I need my code to do is to create a folder in gallery, called "MotiMate" and save images, retrieved from a specific imageview into that folder. Also I need to handle storage permission grant method since I'm targeting API 23.…
2
votes
0 answers

Android addView() resets ImageMatrix of ImageView

I am trying to add ImageButton's in my Android Application from a list imgBtns to an already existing ImageView in this way: for (int k = 0; k < imgBtns.size(); k++) { zoomLayout.addView(imgBtns.get(k)); } The ImageView is zoomable via an…
Clemens
  • 21
  • 5