2

I've implemented RemoteInput in my app, but text field area appears with gray background abd I want it blue like this:

enter image description here

Is there are any way to do this?

UPD: Looks like colorPrimary is used for this, but I don't want to change it in whole app, just in notification

Dmytro Rostopira
  • 10,588
  • 4
  • 64
  • 86

1 Answers1

1

Method setColor is what I was looking for. It also changes icon and title tint.

NotificationCompat.Builder(ctx)
    //....
    .setColor(ContextCompat.getColor(ctx, R.color.colorAccent))
Dmytro Rostopira
  • 10,588
  • 4
  • 64
  • 86