Skip to content Skip to sidebar Skip to footer

Icon Image In Circle Shape Is Blurry

I have created circle shape drawables that contain png icons. As per the Android Material guidelines the diameter of the circle is 40dp and the icon is 24dp. Initially I did not se

Solution 1:

What is the DP group for the device you are using? If your device as a hdpi DP then the icon should have 36*36 size in pixels. If it is in the xhdpi group, it should have 48*48 size in pixels. If it is in the xxhdpi group then it should have a size of 72*72. And so on and so forth. I believe you only have one size for that icon that's why is appears blurred

Solution 2:

http://www.sweet-web-design.com/wordpress/android-tricks-drawable-objects-or-how-to-draw-a-circle/2874/

This works without what ever was causing the image to re-scale and pixelate.

Post a Comment for "Icon Image In Circle Shape Is Blurry"