Why does Android's Nexus 7 virtual device not load my “large” layout resources?

限于喜欢 提交于 2019-12-11 10:36:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!