I am trying to create circular launcher icons in Android Studio 2.2 but they keep coming out square. Has anyone else encountered this? Am I doing something wrong?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
After clicking Next
you should get circular launcher icon.
Previews might be misleading as they have background as the icon.
After all, if you won't get what you expect, try: https://romannurik.github.io/AndroidAssetStudio/
Hope it will help
回答2:
Set the project structure to Android
For app module :-
1. Select app-> res
2. Right click on res folder, click on Image Asset
3. In Legacy tab set the shape to Circle
For wear module :-
1. Select wear-> res
2. Right click on res folder, click on Image Asset
3. In Legacy tab set the shape to Circle
回答3:
Go to under "File > New > Asset Studio", then look for Foreground, Background, Legacy. Click on Legacy and choose "circle" from the drop-down menu under "shape".