![]() It’s really easy to define a shape via XML (for example, a rounded rectangle with a red background and black border): Good luck… androidĮdit 4/2013: keiner has the right idea in the comments below - GradientDrawable seems like the way to go to draw shapes, not ShapeDrawable. I found that magic number (445 ppi) online - that’s the Nexus 5 density, it may be different for other devices. ![]() Your emulator will restart and everything should look just like it does on your physical device. To fix this, open up your terminal, and type the following: adb shell setprop qemu.sf.lcd_density 445 When you start it, everything will look too small… this is because your device has the wrong DPI. Select New Device, and enter the following (obviously you can customize it to your needs)ģ. Yes, I just discovered this tab for the first time today:Ģ. Open up the AVD manager, and go to the “Device Definitions” tab. All of these devices are 1080x1920 and xxhdpi resolution, but the Android SDK devices haven’t been updated in a while. It is surprisingly hard to create Android emulator that supports the latest xxhdpi devices (Samsung GS4, HTC One, LG Nexus 5).
0 Comments
Leave a Reply. |