android - Get image width and height before loading them -
i'm using universal image loader library download images internet.
is possible images size before loading them set layout prams desired values?
something injustdecodebounds
property, ideas?
quoting documentation @ https://github.com/nostra13/android-universal-image-loader
how uil define bitmap size needed exact imageview? searches defined parameters?
get actual measured width , height of imageview.
get android:layout_width , android:layout_height parameters.
get android:maxwidth and/or android:maxheight parameters.
get maximum width and/or height parameters configuration (memorycacheextraoptions(int, int) option).
get width and/or height of device screen.
so try set android:layout_width|android:layout_height or android:maxwidth|android:maxheight parameters imageview if know approximate maximum size of it. correctly compute bitmap size needed view , save memory.
you cannot image height , width before image downloaded. can set imageview height , width.
Comments
Post a Comment