I am using drawable for background in custom views. When I run the code in my realme c2 and enable dark mode in settings the drawable color was not changing. Here is the method.