If you have language specific content - you can change that base on the setting. Use conf.locale = new Locale(.) if targeting lower versions here is a code if you still need this (again, I don't recommend that) Resources res = context.getResources() ĭisplayMetrics dm = res.getDisplayMetrics() Ī conf = res.getConfiguration() Ĭonf.setLocale(new Locale(language_code.toLowerCase())) // API 17+ only. And you have to set it every time you enter activity (each activity) from my experience. It was working via setting locale but was too buggy. We have the same requirement for changing the language but decided to settle to the fact that UI should be same as phone UI. Window 6.3 The Tool Windows 6.4 Android Studio Keyboard Shortcuts 6.5 Switcher. We've tried it at early stages, it's basically fighting the system. Developing Android 10 (Q) Apps Using Android Studio 3.5, Java and Android.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |