问题
Using the Nexus 7 in AVD, my layout-large
resources are not being loaded. I thought that 7-inch devices fell into the "large" category. I have a physical device, the Galaxy 3 Lite, which is 7 inches and loads my "large" resources. I would post some XML, but I feel it should be a straight-forward "7 inches is considered large" issue... Thanks!
EDIT: The expected "large" layout is used in my Genymotion emulator. So why not in the AVD?
回答1:
I had the same problem and the solution exists :
you have to to go in the AVD Manager => Edit the Nexus 7 Settings => Show Advanced Settings => Put the Custom Skin Definition to None
Then the phone is ugly but the layout-large is used.
And I think the same thing can be applied for other phones that have this bug
回答2:
Apparently the emulator is completely out of whack. I've used different methods, and the emulator all returns itself as have a "normal" class screen. Even though the Virtual Device Manager shows it as a large class screen.
Google's Android emulator has always been sub-par, but this is taking it to another level /rant
来源:https://stackoverflow.com/questions/29786506/why-does-androids-nexus-7-virtual-device-not-load-my-large-layout-resources