A
A
Alexander Osherov2020-07-14 16:59:26
Java
Alexander Osherov, 2020-07-14 16:59:26

Some elements in android xml are loaded from dark theme resources, why?

Some elements in android xml are loaded from dark theme resources, why?
on one screen there can be elements that are loaded from resources for both dark and light theme.
I declare the theme type when loading the application
if(mSettings.getBoolean("night_mode", false)==true)
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
else
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question