简体   繁体   中英

How should I size my Spinner Image Size in Android app for different screen size/resolutions?

I'm trying to develop my first app for the play store which should resize for different screen sizes/resolutions. For some reason the spinner images are showing up extremely small for mdpi virtual device & huawei 9 on firebase. Please see attached file. The other images are very large currently because I removed the ldpi, mdpi, hdpi, xhdpi, xxhdpi and xxhdpi folders to see how it would appear with just xxhdpi images. I have spinner widths in the layout xml files at 40dp, 50dp, 80dp and 180dp for small, normal, large and xtra large screens respectively. Screenshot of low res mdpi virtual devise Any ideas why the images would appear so tiny!

In case anyone has sizing/layout issues with Android apps for different screen sizes/display dpis - I highly recommend this sdk https://github.com/intuit/sdp/commits?author=elhanan-mishraky which solved my problem above!

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