简体   繁体   中英

Xamarin form: How to find out the android device's size bucket e.g small, medium etc

Trying to create a new android device from Xamarin IDE. I try to create a simulator with the similar spec as Galaxy Tab S2. How do I find out the Size bucket of that device, the screen ratio, and density.

在此处输入图片说明

Via Android Central (which will typically have the resolution and screen size specs for most devices).

The Samsung Galaxy Tab S2 .... with the 8-inch version ... and the 9.7-inch version getting a weight of 389 g. Both versions have a Super AMOLED display with a resolution of 2048x1536.

Via Android's Screen sizes :

在此处输入图片说明

So,

  • Resolution of: 2048 x 1536 for either size

  • DPI of : 256 for 8", 211 for 9.7"

  • Size: xlarge

Which places one device in mdpi and one in hdpi based resources.

mdpi: Resources for medium-density (mdpi) screens (~160dpi). (This is the baseline density.) hdpi: Resources for high-density (hdpi) screens (~240dpi).

re: https://developer.android.com/training/multiscreen/screendensities

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