我試圖用這個指南來實現:與<屏蔽圖標>創建自適應圖標
https://developer.android.com/preview/features/adaptive-icons.html#Creating
爲AndroidØ預覽,但發射顯示我默認的Android圖標,並表示不兩層在我ic_launcher.xml
ic_launcher.xml
<maskable-icon>
<background android:drawable="@mipmap/layer0"/>
<foreground android:drawable="@mipmap/layer1"/>
</maskable-icon>
有沒有人試圖實現這個?還是不可用?
(在我的表現,我把圖標ic_launcher.xml)
UPDATE: 谷歌更新您的網站,並把adaptive-icon
代替maskable-icon
爲我工作。請參閱相應的問題: https://issuetracker.google.com/issues/36535386 – sebastian