Android 5+ custom notification XML layout with RemoteViews, set correct icon tint for ImageButton : <p>My app is using a custom Notification layout with RemoteViews.</p>

<p>To display text, the layout is using the following system styles:</p>

<p><code>android:TextAppearance.Material.Notification.Title</code>
<code>android:TextAppearance.Material.Notification</code></p>

<p>This works fine.</p>

<p>However, the TextAppearance style can't be used to set the value of <code>android:tint</code>, so I had to hardcode the color.</p>

<p>To my best knowledge, there's no special system style for setting notification ImageButton tint.</p>

<p>Hardcoded colors work fine on the current Android 5+ systems, but some users install custom ROMs with custom dark themes, and the notification looks wrong, i.e. black icons on black background.</p>

<p>Is there any way to get the system notification icon / imagebutton color, and apply it from an XML layout?</p>

<p>Or maybe there's another way to achieve this?</p>
