Wish ImageView - Gravity type Uniform Fill

Thraka

Member
Licensed User
Longtime User
Uniform fill seems like a must for the image view. Unless you know the ratio of the image, and set your width/height of the ImageView to match that, stretching will distort the image. Please add a uniform fill option.

Thanks!
 

Informatix

Expert
Licensed User
Longtime User
Uniform fill seems like a must for the image view. Unless you know the ratio of the image, and set your width/height of the ImageView to match that, stretching will distort the image. Please add a uniform fill option.

Thanks!
I'm not sure to understand what you call an "uniform fill" option, because that sounds to me as an option to strech the image, but you can have a look at my BetterImageView library. You should find what you look for in the various values of ScaleType.
 

Thraka

Member
Licensed User
Longtime User
Hmm I'm not sure what it is called in the android world. Basically it keeps the ratio of the image the same when stretching. It doesn't stretch to fit the entire control area. It stretches to fit to whichever edge is closest. Ok I'll check out your control library, but it would be handy to have this added to the built in control. :)
 
Top