![](/img/trans.png)
[英]why the image for notification icon generated using Android Asset Studio is completely white?
[英]Why is the color for the notification icons generated by Android Image Asset Studio completely white?
當我右鍵單擊我的drawable
文件夾並執行New
-> Image Asset
-> Notification Icons
時,我的圖標顏色變為白色。 我上傳的圖片背景是透明的,但是為什么圖標變白了? 我該如何解決? 我想保持原來的顏色。 我的最低 API 級別設置為 21。
根據指南,通知圖標是單色的,並通過setColor
API着色,因此預計它們是純白色。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.