DatePickerDialog in Arabic
1 answer
I found the answer to change the "Locale" of the whole application to "ar". On initial action, set your application Locale to "ar" by code and all views and dialogs will be translated to Arabic.
Locale locale = new Locale("ar");
Locale.setDefault(locale);
Configuration config =
getBaseContext().getResources().getConfiguration();
config.setLocale(locale);
createConfigurationContext(config);
0
source to share