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
1 answer

MvvmCross binding image file to Android ImageView

I am trying to bind an image file to an Android ImageView that is within an MvxListView. The images are just not appearing when the View is shown. I have included the MvvmCross.HotTuna.Plugin.File package. ListVideo.axml (snippet)
JDibble
  • 744
  • 1
  • 8
  • 25
1
vote
1 answer

Placeholder animation while loading image from the network

I'm working with a bunch of ImageViews and most of them are updated dynamically. I check if the image exists on a local storage drive and if it's not present I download the image. While this is all happening I create a CardView and display it on the…
Vendetta8247
  • 592
  • 1
  • 5
  • 30
1
vote
2 answers

How can I create an image placeholder of an image I am fetching from the web?

I am given the image size, and i want to create a placeholder of that image size's ratio. A simple solid gray color is fine.
Sree
  • 2,727
  • 3
  • 29
  • 47
1
vote
0 answers

How to load all images from the phone?

Working with images on Android is like getting crazy. For a few hours I try to get all images from phone and show them into list (RecyclerView). And then when user taps on the image, it should open a new full screen activity to display high…
Zookey
  • 2,637
  • 13
  • 46
  • 80
1
vote
1 answer

Gridview item showing shadow on click

I am using gridview for my application dashborad, but when i click on item, it shows the shadow. How can i remove showdow on click. Here is my item grid xml
Faisal Ahsan
  • 928
  • 1
  • 12
  • 22
1
vote
2 answers

Load Image Resource on ViewAdapter

I have a ReciclerView which is using an Adapter called "SimpleItemRecyclerViewAdapter". Each item in the ReciclerView is in the project's "drawable" folder. I was able to set the test on both TextView's but I'm not sure how to do this for the…
CBA110
  • 1,072
  • 2
  • 18
  • 37
1
vote
1 answer

Display drawable exactly the size of the imageView to use as a placeholder

Friends I have checked get drawable exactly the size of the imageView to use as a placeholder But it did not help me My problem is I want to display a place holder exactly of the image size The Image size is dynamic , I am getting the image height…
Naga
  • 1,931
  • 4
  • 25
  • 42
1
vote
2 answers

Gridview elements alignment

The screenshot of my present design But I wanted the design to be something like the design below The grid layout is as below
1
vote
1 answer

How to display image having fixed Uri in Image View in android

I want to display an Image and buttons below it in a LinearLayout. For the image, I am using an ImageView and the 2 buttons are part of a nested LinearLayout. You might be thinking, that this is already available on the Net. Why is this guy wasting…
Iceflame007
  • 147
  • 2
  • 11
1
vote
1 answer

Android Camera Intent crashes with Android L

My app is working properly on all api till Kitkat but it's not working in lollipop. The moment i clicks for capturing a photo using camera in my app, it crashes. cam.setOnClickListener(new OnClickListener() { @Override …
Rahul Saxena
  • 69
  • 1
  • 10
1
vote
1 answer

Endless GC_FOR_ALLOC after resize one ImageView

I got endless GC_FOR_ALLOC in my log cat as below: 32ms, total 32ms 07-01 12:23:28.946 14905-14905/com.dodosocial.lowongan D/dalvikvm﹕ GC_FOR_ALLOC freed 1994K, 32% free 18349K/26896K, paused 15ms, total 15ms 07-01 12:23:29.116 …
1
vote
0 answers

Imageview Canvas Black Background in Android Lollipop - Xamarin

I have a ImageView in Xamarin which has rounded corners. My code worked fine for Android 4.4 and below but Lollipop onward it now has a black background added to it Black Area should be Transparent - https://i.stack.imgur.com/GRFnl.png public…
1
vote
1 answer

Imageview looks like mapview

I have a image (resolution 8328x3987). And I want to load that image in my app with zoom controls for better viewing. As we all know that Android will not load large images directly on device (like in my example). So Android system suggested us to…
Mca Dc
  • 11
  • 6
1
vote
0 answers

How to scale custom image views in android?

In my face detector project, I'm using a custom ImageView (MyView) to detect faces and draw rectangles on the detected faces. For this I have set fixed dimensions for my customview (MyView) and trying to scale the bitmap to fit the customview. But…
1
vote
1 answer

Android avoid image scalling in Imageview for Image Mapping like Html

Hi Am trying to implement image mapping as like html in android. For that i referred this project. Its work good when i access the image from drawable-nodpi folder. But when i access from other drawable folder the image get scaled as per the android…
Nas
  • 2,158
  • 1
  • 21
  • 38
1 2 3
99
100