Android studio pixelated preview

人走茶凉 提交于 2020-01-21 05:24:06

问题


After updating Android studio to version 3.1.2 an issue popped up where the preview image is, pixelated/blurry. Can anyone help me fix this issue?

This is how the image is rendered


回答1:


I have encountered the same problem in Android Studio 3.3 but fortunately I've managed to find a solution. You have to go to "Help" and click on "Edit Custom Properties". It might ask you to generate a file if it doesn't already exist. Once this properties file is made, you will need to write "hidpi=false" (no quotations). Save it and restart Android Studio. When you open it again , you still need to do one thing: go to File then Settings, type font in search box, select font from editor then change the size of font to 15. (or what ever size you prefer). That's all.




回答2:


I'm not sure weather it will work for your scenario. I had a issue with icon pixels and I followed this.

I hope it will help you.

Create a drawable-xxhdpi directory and add all your images in that and try.

NOTE : I'm not sure that this process helps you or not.

link help you to create drawable-xxhdpi directory




回答3:


I'm having the same problem and it is somehow annoying i opened a bug ticket and i will wait for there response here is the ticket link : https://issuetracker.google.com/110463869




回答4:


I solve this problem pretty easy after learning documentation.

You need to change your scale display parameter. Because Android Studio supports only certain scale. Use 100% or 200% and your design tab in Android will be sharp again

Choose "answer is useful" mark)) if it helps you.



来源:https://stackoverflow.com/questions/50754524/android-studio-pixelated-preview

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