NotificationCompat android - how to show only Large icon without small

后端 未结 5 1717
轻奢々
轻奢々 2021-01-04 10:59

When I add notification:

        NotificationCompat.Builder mBuilder =
                            new NotificationCompat.Builder(this)  
              .set         


        
5条回答
  •  臣服心动
    2021-01-04 11:31

    Small icon is mandatory. If you don't set a large one you'll get your small icon bigger in the middle of the circle with the color of your choice (setColor).

    If i were you i'd put that blank E on a transparent background for smallicon, and set a red color for the circle.

提交回复
热议问题