I have an application in Arabic and I want to view the DatePickerDialog in Arabic.
I have tried setting "Locale" but that didn't work.
Thanks
I found the answer is to change the "Locale" of the whole app to "ar" At your starting activity set your application Locale to "ar" by below code and all views and dialogs will be switched to Arabic.
Locale locale = new Locale("ar");
Locale.setDefault(locale);
Configuration config =
getBaseContext().getResources().getConfiguration();
config.setLocale(locale);
createConfigurationContext(config);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With