Reputation: 7023
Currently i m using Android AQuery and displaying it and its working fine. but i m having an issue that if image that is returned from Web server is not of same size as that of image container then it does not fit to the container. I have used the following piece of code of Aqery
mAquery.id(Thmbnail).auth(handle).image(DetailData.get(Position).getImageURL(),true,true,0,0,null,0,mAquery.RATIO_PRESERVE);
If I use
mAquery.RATIO_PRESERV
then images become of weird size and if i use ration then it results crop image does any one here have any idea about this that it won`t crop the image and use the container size of image view Thank you in advance for help
Upvotes: 2
Views: 2166
Reputation: 1624
This should solve your problem:
AQuery.FADE_IN
mAquery.id(Thmbnail).auth(handle).image(DetailData.get(Position).getImageURL(),true,true,0,0,null,mAquery.RATIO_PRESERVE, AQuery.FADE_IN);
Upvotes: -1
Reputation: 180
Seems like you want to stretch the image?
In that case just use fitXY scale type in the xml layout of ImageView and use ratio of 0.
Upvotes: 2