Questions tagged [android-imageview]

Displays an arbitrary image or a drawable, such as an icon or an xml defined graphical element.

Displays an arbitrary image, such as an icon. The ImageView class can load images from various sources (such as resources or content providers) and it will take care of computing its measurement from the image so that it can be used in any layout manager. It also provides various display options such as scaling and tinting.

More information can be found in the documentation for the ImageView class.

4273 questions
1
vote
6 answers

How to set the same OnClickListener to all(multiple) ImageView(s)

I am making some kind of puzzle game where there will be a lot of blocks that are made of ImageView(s). Now in this case, I have only setOnClickListener to imageView1, now rather than me writing the same block of setOnClickListener for each…
Charas
  • 1,753
  • 4
  • 21
  • 53
1
vote
1 answer

How to zoom multiple images at once in android?

I have two images (ImageViews), one in the background that displays a world map with the different countries of the world. The second image is an invisible mask with different colors for each country to distinguish which country the user clicked…
trinity420
  • 670
  • 7
  • 19
1
vote
1 answer

Android ImageButton ListView

How can make something like this? ? For my aplication I want some list of image button and if I've press one button I want to do something. I've really search on all google to find that and I've found some example but all of them are to complex and…
1
vote
2 answers

loading image into android imageView with ion returns a blurry result

I'm trying to load an image from filesystem into an imageView with the ion library. When I'm using the following code: Ion.with(imageView) .placeholder(R.drawable.placeholder_image) .error(R.drawable.error_image) .load(uri); it (sometimes) results…
c7n
  • 1,131
  • 16
  • 29
1
vote
1 answer

Image cannot upload on server in android

i am getting image from gallery and put into server by php, all is done but image cannot save on server Please help me public int uploadFile (String sourceFileUri) { String fileName = sourceFileUri; String…
1
vote
2 answers

How to create rounded view with multiple images

How would I go about creating a view that could contain multiple images and contain a circular border? Here are a few samples of what the end product would look like. The images will be downloaded from a url, and as shown in the samples, there…
Ankit Goyal
  • 437
  • 1
  • 7
  • 24
1
vote
1 answer

ImageView ScaleType.FIT_XY not working with setImageDrawable

I need to copy an ImageView in my application and change it's size whenever the user wants. What I do is here: public void testClick(View view) { ImageView im = new ImageView(this); im.setImageDrawable(((ImageView) view).getDrawable()); …
Feri
  • 1,071
  • 7
  • 19
1
vote
1 answer

Android ImageView Coordinate Clicking

I have a ViewPager screenslide I am implementing in my app. There are parts of images I want the user to be able to click on to open a dialog box or a website. When I was working with iOS, I did a workaround where I found the coordinates of the…
yun
  • 1,243
  • 11
  • 30
1
vote
0 answers

Problems with, manage of camera and Image view

I'm developing an app using a camera intent to take a photo and an image view to show it. I've two problems, first is with the camera. I have an activity only to manage the camera behaviour, the code of this manager is based on the sample of…
1
vote
1 answer

Why are my ImageViews being distorted on scrolling down?

I am facing a peculiar problem. I have a gridview of Music Genres. In each grid item we can display upto 3 thumbnail images in cascaded fashion (similar to the Genres of Google Play Music). However as I scroll down the page and scroll back I find…
1
vote
0 answers

ImageView that can zoom and detect a fling event

I'm working on a gallery app that allows the user to pull up a imageView that has the following gesture detector that listens for a "fling" that represents the user attempting to swipe to the next/previous picture. Gesture detector to detect when…
1
vote
1 answer

Android rotate imageview animation issue

I am working android rotation of ImageView. When I run Project, animation in onCreate() its work fine, but when I try to start Animation on Click button its not working. How can I fix it? XML Code
user123456
  • 265
  • 2
  • 14
1
vote
1 answer

How to define the Image sizes for various android devices, not Icons?

I want to use layout in this way, where image will be loaded from a HTTP server request. I need to know how can I define the image sizes from various android device , as in the server there will not be any drawable asset folder. Till now I have…
Rahul
  • 395
  • 5
  • 20
1
vote
1 answer

Photo Rotated After Capture in Portrait Mode

I am attempting to take a captured image and display to the Activity. When the image is set, it gets rotated to the right 90 degrees. I'm not sure what I am doing wrong. I capture the image by using MediaStore.ACTION_IMAGE_CAPTURE and saved it and…
HTG
  • 584
  • 1
  • 8
  • 28
1
vote
2 answers

Pass Image url through intent to a another activity

I'm new to android and I am using Picasso to receive image from my localhost.I want to pass image via intent to another new activity but I'm unable to display the image in my layout.Help me to figure out this problem. This is my Movie.class public…
user4051583