Answers for "android ask if system is in dark mode"

0

android ask if system is in dark mode

switch (getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK) {
    case Configuration.UI_MODE_NIGHT_YES:
       //process
        break;
    case Configuration.UI_MODE_NIGHT_NO:
        // process
        break; 
}
Posted by: Guest on October-02-2021

Code answers related to "android ask if system is in dark mode"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language