我给我的应用程序添加了一个自适应图标。它在Pixel和Pixel 2上工作得很好,但是在Nexus 6和无根像素发射器上,它不工作。我可以在Nexus 6上看到其他圆形图标,所以它适用于其他应用程序。
我的名单是这样的:
<application
android:name=".MyAppclass"
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:theme="@style/MyTheme">在mipmap-anydpi-v26上,我有一个ic_launcher.xml,它看起来像这样:
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_background_icon"/>
<foreground android:drawable="@drawable/ic_foreground_icon"/>
</adaptive-icon>我遗漏了什么?
谢谢。
发布于 2018-03-14 17:24:40
结果,我也需要roundIcon属性在AndroidManifest.xml上。
https://github.com/amirzaidi/Launcher3/issues/421#issuecomment-372961568
https://stackoverflow.com/questions/49263007
复制相似问题