3

I have an app that will support xxhdpi devices but I cannot make it work on emulator (I don't have a real device with me and I want to test it on the emulator.) This is the configuration of the emulator that I am using.

Sony Xperia Z Emulator Configuration

I tried to get the screen density of the emulator and it gives me xhdpi instead of xxhdpi. I have values folder for xxhdpinamed values-xxhdpi.

Any help will be appreciated. Thanks!

dzep
  • 685
  • 1
  • 8
  • 20

2 Answers2

1

It seems currently android tools are not properly updated to show correct values.

Netverse
  • 1,189
  • 1
  • 8
  • 18
  • If so, then how will I support `xxhdpi` screen density? It uses the `xhdpi` values and it makes the look weird (many elements are so small)? Thanks! – dzep May 24 '13 at 09:22
  • As android best practices sugges use all the values in DP and SP. If your xhdpi layouts has px values then convert them into DP by dividing px value by 2 – Netverse Jun 01 '13 at 10:33
1

Check out this answer here as well! Restarting adb manually solved the issue for me!

Community
  • 1
  • 1
longi
  • 11,104
  • 10
  • 55
  • 89