parse.com - Is there an Android equivalent of iOS' UIViewContentModeScaleAspectFit; -
i've got image loaded parse.com , on xhdpi , xxhdpi devices, image displayed tiny. i've tried playing xml layout. can stretch background image border downloaded image full width of screen. height of image never exceeds physical size of image stored on parse.
i'm trying image scale fit width of device on, while maintaining aspect ratio.
i'm using parseimageview subclass of imageview. accomplished on ios resizing image fill width, , setting imageview.contentmode=uiviewcontentmodescaleaspectfit; there equivilant android?
you can achieve using picasso library. using picasso library, can width , height of image web casting bitmap , scaling imageview aspect ratio. related post below:
Comments
Post a Comment