Android image view in list will not scale to width?

Have you tried ImageView.ScaleType. FIT_XY? Scale Types.

Yeah, it keeps the height the same as what it is now and stretches the image to the width of the screen. I want the height to adjust proportionally with the width, I don't know why the height is staying at what it is. – jan Jan 28 at 2:32 Oh, so you want the image to fill the entire width and have the height be whatever it ends up being proportionally?

Sorry I guess I misread your original question. I'm not sure exactly how to do that. How are you adding it to the List or Adapter?

– littleFluffyKitty Jan 28 at 2:34 when the list adapter getView is called I return that ImageView, I thought FIT_CENTER was supposed to do exactly what I'm looking for and it did for a while, I don't know what has changed – jan Jan 28 at 2:40.

New to Android, bad with layouts so this is probably a simple solution but I can't find it. In the ListAdapter. I want the Image to scale so the width fills the screen and the height adjust proportionally.

What is happening is the image is scaling down so the height fills the list row but there is plenty of room for the width to be bigger. I had this working earlier but can't figure out what changed. Why is the image shrinking to some seemingly arbitrary height and how do I get it to fill the screen by width?

So this happened when I started building for 1.6 instead of 1.5, probably a resolution thing. I guess the image is a bit sharper when it's small but I want it larger, it's almost unusable smaller and I am not able to get a larger image, it's from the web.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions