Nougat RemoteInput: color of text field

476 Views Asked by At

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

1

There are 1 best solutions below

0
On BEST ANSWER

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))