Small font size in Android emulator

谁说我不能喝 提交于 2019-12-22 08:55:23

问题


Sometimes I notice the Android emulator starts with a very small font size. This seems to happen randomly. Other times it has a normal font size. I use ADT 10.0.1. Do you know what is the problem?


回答1:


This happens very often, and although I'm not sure about the exact reason behind this, it seems that somehow the wrong density was detected for this and resources for a lower dpi is loaded inside a higher dpi emulator. That's why everything is smaller, but the layout works properly and aligns things at their own places. And you're right: when this happens, network doesn't work in emulator! These two things seem unrelated, but my guess is that emulator fails at loading config for the current virtual machine successfully, and that includes density and network capabilities.

Anyways, there doesn't seem to be any official info on this, and similar reports in android-developers mailing list didn't get any response for developers of Android, although this is a very popular bug.

And the solution right now is only restarting the emulator. Sometimes you have to do this more than once, but finally it works.




回答2:


Make sure your computer's display resolution can satisfy your emulator's exact resolution. If you are using Mac with Retina Display, this problem may occur. Try changing display resolution via Display settings.



来源:https://stackoverflow.com/questions/5613302/small-font-size-in-android-emulator

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