Multiple language didn't work with dark mode in 1.1.0-alpha07
See original GitHub issueDescription: Multiple language App work fine. After adding the dark mode option to it and use
getDelegate().setLocalNightMode(
AppCompatDelegate.MODE_NIGHT_YES);
to change the theme to dark, strings.xml
didn’t load from values-uk
folder and load from values
folder.
Expected behavior:
In the dark mode, strings.xml
should be load from the selected language.
Source code: https://github.com/bkhezry/LanguageTest
Android API version: 28
Material Library version: 1.1.0-alpha07
Appcompat version: 1.1.0-rc01
Device: Xiaomi Redmi Note 7
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (2 by maintainers)
Top Results From Across the Web
Android custom locale lost during Dark Mode (Night Mode ...
Our app requires us to be able to change the language based on user selection rather than just relying on the device locale....
Read more >Compose UI - Android Developers
Structure. Compose is combination of 7 Maven Group Ids within androidx . Each Group contains a targeted subset of functionality, each with it's...
Read more >Dark Mode toggle resets local language setting to Default ...
Our app requires us to be able to change the language based on user selection rather than just relying on the device locale....
Read more >diff - Google Git
+ * See the License for the specific language governing permissions and + ... + * - This can happen on devices that...
Read more >Google Translate's dark mode looks better now, but hasn't yet ...
Read update. New design. Many of Google's most popular apps have received an update with dark mode, but Translate remains an outlier. It's ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello for fix this error you must use this code :
delegate.localNightMode = AppCompatDelegate.MODE_NIGHT_YES;
Please see the comment from when this was closed: