Issue
I've create a simple app that works well on my HTC One. On my friends Sony Xperia Z3 Compact with a 4.6" HD (1280x720 pixels) screen, however, the layout get pretty messy. I'd like to emulate his screen on my Android Studio AVD, but haven't really found a device configuration that I think will be close. How do you guys suggest I go about deciding which device is the closes one? Being a HD screen I'm thinking I maybe should go for an xxhdpi density screen, which excludes all but the Nexus 5, but I'm not sure if this is the right approach for determining the emulator screen size.
Kenneth
Solution
So, in the latest stable/beta version of Android Studio, you can create a new AVD, and in the bottom left corner of the dialog, there's a button to "Create Virtual Device".
This opens a new dialog, on which you can select "New hardware profile".
Modify the fields to set the screen size as 4.6" and the resolution as 720x1280 (assuming you want portrait phone):
Note the density is displayed as xhdpi
. The density is not something you set: it's a calculated value based on the physical screen size and resolution.
Answered By - ataulm
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.