Change Color Of Notification Title (android)
That's my code and everything works fine. val builder = NotificationCompat.Builder(this, 'NOTI_ID') .setSmallIcon(R.drawable.ic_stat_name) .setContentTitle('My no
Solution 1:
I'm using this approach in Java:
int color = ContextCompat.getColor(this, R.color.colorPrimaryDark);
builder.setContentTitle(HtmlCompat.fromHtml("<font color=\"" + color + "\">" + notificationTitle + "</font>", HtmlCompat.FROM_HTML_MODE_LEGACY))
Post a Comment for "Change Color Of Notification Title (android)"