In my application I used icons in custom notification. The icons' color is black. It works fine in light mode, but NOT in dark. The icons are made by vector graphics in Android. The problem with the text is solve by
style="@style/TextAppearance.Compat.Notification.Title"
in TextView. How can I use these icons for both Light and Dark Themes?
My Target & Compiling SDK is 30 Minimum Support SDK is 16
You have to use icons in white color having transparent background. It will work for both light and dark theme. You can also change that white colour according to your app theme by adding some line of code as follows like gmail does: