Closed RobotAmiee closed 10 years ago
Just set view width and height in getView and solved the problem.
That's not perfect, can you tell me how to make it just perfect like in Etsy?
Our API will tell us the width and height of an image before we load it from the server.
The steps are like this. 1 - Request a list of Etsy items along with their image url, width and height. For each item 2 - Set the image height ratio on the DynamicHeightImageView based on the image data. 3 - Request the image to be shown.
how to calculate the image height ratio with known height and width of the image? please explain. Thanks in advance
I have image's width and height, how to set grid item(ImageView)'s width and height before loading image from server like Etsy? Maybe set them in Adapter's getView method?