2017-06-21 49 views
1

我想在通知阴影中显示图标。该图标是带有黑色文字的白色背景。该图标显示在状态栏中,但通知栏的图标变灰。目标SDK是25 The notification shadeThe status bar通知阴影图标变灰

我使用的代码是:

NotificationCompat.Builder builder = 
      (NotificationCompat.Builder) new NotificationCompat.Builder(this) 
        .setContentTitle("Where?") 
        .setContentText(text) 
        .setSmallIcon(R.drawable.wimbicon); 

回答

0

所以我通过在资产Studio中的通知图标,使得它有一个透明背景的解决了这个问题。解决问题!