App图标在Android Studio中有绿色描边吗?

huangapple go评论82阅读模式
英文:

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!

App Icon
Emulator

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!

App Icon
Emulator

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.

huangapple
  • 本文由 发表于 2023年7月3日 07:02:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/76601085.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定