So far I have learnt from google, you have to use Theme.Appcompat.Daynight or Material Daynight theme to make your app support dark mode. And you need to use different styles.xml in values and values-night directories. I am not willing to make my app support dark theme. But when I change android system theme (from notification panel) to dark, my app becomes dark. I am using Theme.Appcompat.Light as base theme, did nothing for my app to support dark mode, still my app becomes dark. I am using cardview for the very first time, don't know if it may be the cause since I am very new in android programming. Your little help will be much welcome. Please, check screenshots here:
How to disable automatic change of day night theme based on android system settings?
4.2k Views Asked by Sudipta Debnath At
3
in android 10 ,android forse dark to app to pervent that , add below to your defult theme in style :