Recently the project was in beta, with a lot less work, and a new Android Studio was installed to write about Android. Create a new project and want to set up a desktop icon. I first prepared my own icon picture, and then copied and pasted into the res/mipmap-hdpi folder, and then in Androidmanifest the address of the icon to my own image named, run, found that the simulator all the icons are round, my picture is square, It looks like a round white with my square icon in it and then checks the Internet for Android icon adaptation. Android Studio does provide a way to adapt, there are many online, but I fell into a hole, first to introduce the icon adaptive configuration, first create a new image Asset,
After you select Image Asset,
Select the picture of the icon you want to set in place of the callout. As I said earlier, I have copied the icon to the Res/mipmap-hdpi folder, and then I went there to select the picture, but I did not paste it into the picture, and then I directly right-click the res/mipmap-hdpi folder, select the Display folder, see the picture there. That is, in the Set icon selection path there can not choose their own icon, and then for a long time, the icon has been set not successful, finally I chose the path of the picture on my Computer path, and then found that the right picture no longer show the default icon is my own icon, and then click Next, Click on the Finish,app icon to set it up.
Say the main pit point, icon image has been copied and pasted under the project, but in the selection of pictures to go to the path of the picture can not see the picture. If you encounter this situation, do not first put the picture in the project, set the time to directly select the picture on it.
As a result of the development of Android soon, in the rookie stage, I do not know what the cause of this, there are passing the great God can give me answers to doubts. In addition, I have used the Android studio2.x version, the setting icon is not encountered this problem.
"Android" Android Studio3.1 Mac version set project Desktop icon