riskger.blogg.se

Android studio icon drawble
Android studio icon drawble







android studio icon drawble

Legacy Icon (for devices running Android 7 and below) Adaptive icons appear beautifully on Android 8 and above devices. I put both these files in mipmap folder and followed Erel's example. I resized the current icon to 53x53 so that it has enough transparent background remaining in the 108x108 canvas.I created a 108x108 dp PNG file and placed the current icon in center.I used the current icon as foreground and the filling color as background. Ok I could finally get it to work but what I did is different from your approach. Could you please take a look and let me know what is wrong with it?Īlso did you create the file in Photoshop or Android Studio? Any particular settings used? Your file is under 1 KB while my file is about 3 KB although both are identical PNG files with same 108x108 size. I again changed back to your blue PNG file and it works fine. That PNG file is just like yours - 108x108 with transparent circle in the center. But when I used that file, icon shows only background.png. Since my designing skills are bad, I asked a friend of mine who used Photoshop to make a PNG file with bigger circle in the center and grey colour around it.

android studio icon drawble

Now I need to make the circle in your foreground.png bigger so that my app icon is properly visible. I even tried changing the blue colour in your foregound file using paint.NET to grey and it worked great. And it worked - I could see my icon through a circle with blue color around, which I think is the intended behaviour. I tried using my own icon as background and your blue color foreground.png as foreground.









Android studio icon drawble