Android Oreo在白色圆形内显示图标 [英] Android oreo shows icon inside white round
问题描述
我的Android应用程序在Android Oreo版本的白色圆圈内显示启动器图标.
My Android application shows launcher icon inside white circle on Android oreo version.
我想显示启动器图标,因为默认情况下它就像在奥利奥设备上的正方形一样.
I would like to show launcher icon as it is like square on oreo device by default.
浏览各种博客,发现:
1)移动用户可以在主屏幕设置屏幕上更改图标类型
1) Mobile user can change icon type from home screen settings screen
(但是我不想要.默认情况下,我只想显示正方形)
(But that I don't want. I want to display only square by default)
2)使用低于26的应用程序目标sdk版本
2) Use application target sdk version below 26
(我想定位最新的sdk版本并显示方形启动器图标)
(I want to have latest sdk version targeted and square launcher icon)
我尝试过:
- 带有背景和前景可绘制对象的自适应图标(不显示方形图标)
- 使用的mipmap文件夹
有人可以帮我解决同样的问题吗?
Can anyone help me for any solution for the same?
推荐答案
如果要继续在正方形中显示应用程序图标,则必须使用25种以下的Android SDK来构建应用程序.
If you want to keep displaying your app icon in a square, you'll have to build your app using Android SDK 25 of less.
如果您的应用是使用Android SDK 26或更高版本编译的,则无论您使用的是新的自适应图标格式还是旧格式,您的应用图标都会显示在白色圆圈内.
If your app is compiled with Android SDK 26 or more, your app icon will appear inside a white round, whether you use the new adaptative icon format or the legacy format.
我建议您使用Android Studio的Image Asset Studio为您的应用创建自适应图标. https://developer.android.com/studio/write/image-asset -studio.html
I advise you to use Android Studio's Image Asset Studio to create an adaptative icon for your app. https://developer.android.com/studio/write/image-asset-studio.html
有关创建自适应图标的更多信息: https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive.html
For more infos on creating adaptative icon: https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive.html
如果您只想从旧版更新应用程序图标:
右键单击您的应用程序(在项目"选项卡中)->新建"->图像资产",选择资产类型:图像",然后在路径"中选择您的图像.
Right click your app (in Project tab) -> New -> Image Asset, select Asset type: image and choose your image in Path.
这篇关于Android Oreo在白色圆形内显示图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!