英文:
App icon in Android Studio has green stroke?
问题
I'm new to Android Studio and encountered an issue while trying to change the app icon in my Android project. Despite following several tutorial videos step by step, the resulting app icon has a green stroke around it. I have tried using different images and adjusting their size, but the issue persists.
To troubleshoot further, I created a new project and noticed that even the default Android icon has a green background when the app is first created and run.
How can I remove the green stroke from the app icon in Android Studio? I would greatly appreciate any guidance or suggestions to resolve this issue. Thank you!
Replacing the default app icon with a custom one:
I replaced the default app icon in the res/mipmap or res/drawable directory with a custom icon that does not have a green stroke.
I expected the new custom app icon to be displayed without any green stroke.
Adjusting the size of the custom app icon:
I tried resizing the custom app icon to match the recommended sizes for different densities (mdpi, hdpi, xhdpi, etc.).
I expected that resizing the icon would remove the green stroke.
英文:
I'm new to Android Studio and encountered an issue while trying to change the app icon in my Android project. Despite following several tutorial videos step by step, the resulting app icon has a green stroke around it. I have tried using different images and adjusting their size, but the issue persists.
To troubleshoot further, I created a new project and noticed that even the default Android icon has a green background when the app is first created and run.
How can I remove the green stroke from the app icon in Android Studio? I would greatly appreciate any guidance or suggestions to resolve this issue. Thank you!
Replacing the default app icon with a custom one:
I replaced the default app icon in the res/mipmap or res/drawable directory with a custom icon that does not have a green stroke.
I expected the new custom app icon to be displayed without any green stroke.
Adjusting the size of the custom app icon:
I tried resizing the custom app icon to match the recommended sizes for different densities (mdpi, hdpi, xhdpi, etc.).
I expected that resizing the icon would remove the green stroke.
答案1
得分: 1
这是启动器在未将应用程序图标拖到该位置时为常用启动的应用程序提供的自动建议。这是默认模拟器(以及Pixel)启动器的特定功能,不会出现在其他启动器上。
如果您手动将应用程序图标拖到该位置,您会发现指示这是自动建议的描边将被移除。
在Android Studio层面,您无需进行任何操作。
英文:
That's an automatic suggestion that the launcher provides to commonly launched app when no app icon has been dragged into that spot. This is a specific feature for the default emulator (and Pixel) launcher and not something that you'll see on other launchers.
If you manually drag your app icon to that spot, you'll find that the stroke that indicates that this is an automatic suggestion will be removed.
There's nothing you need to do at the Android Studio level you need to do.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论