自定义通知视图中的Android图像在黑暗模式下为反色(android 10.0)

问题描述 投票:0回答:1
  1. 当我使用systemPic样式,使用system xml时,效果很好。
        builder.setContentTitle(StringUtil.f(title));
        builder.setContentText(StringUtil.f(desc));

        if (poster != null) {
            builder.setLargeIcon(poster);
        }
        Notification notification = builder.build();
  1. 但是当我使用自定义布局时,通知中的图像就像一个负图像:original imageInvert image
android-notifications android-darkmode
1个回答
0
投票

我有同样的问题!您找到此问题的任何解决方案了吗?

© www.soinside.com 2019 - 2024. All rights reserved.