5

Is it possible to configure android.app.DatePickerDialog so that it is localized for the European format easily (exchange day and month and exchange the english button names with localized ones) ?

2 Answers 2

4

The DatePickerDialog is localized by default. I tried it on a real device and the localization of the dialog adapts to the system default.

Sign up to request clarification or add additional context in comments.

1 Comment

Additional information for application locale you can find here
0

You could design 2 DatePickerDialogs and use a condition based on the Locale class to choose between one or the other. However, as there is no "Europe" locale, but only countries locales, you might need to put the european locales in a list, and check if the locale is in the list. The current locale of the phone is accessed with : Locale.getDefault()

2 Comments

But the android.app.DatePickerDialog has no option to localize it to another format, or do i oversee it ? Do i have to rewrite it on my own ?
I don't know a lot about this kind of dialog, but I think you do have to rewrite your own.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.