简体   繁体   中英

Retrieve different density pixels images from parse.com

I have a listview that retrives images from parse.com . But in parse.com I can upload only one density pixel image which is retrieved. How I support multiple devices with different densities like xhdpi,xhdpi,xxxhpi

You have listview,so you have adapter for the listview. So you can layout view for the adapter like below You define the Imageview width and height in a certain number.And the and the scaleType is fitxy, So all the image you download will display as you defined size.

<ImageView
        android:scaleType="fitXY"
        android:layout_width="80dp"
        android:layout_height="80dp"/>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM