Hello.
In the application, you must select a date. Uses standard DatePickerDialog.
When displaying the date selection, the calendar looks European-style (Sunday is the first day of the week). How to change the date selection so that the first day of the week is Monday?

Standard display


And immediately the second question regarding this view. How to replace the days of the week
with [P, B, C, F, P, C, B]
on [Mon, Tues, Wed, Thu, Fri, Sat, Sun]
These designations are of interest.

1 answer 1

this can be done, for example, in the onCreate () / onCreateView () methods of your activations / fragments

date = (DatePicker) value.findViewById(R.id.date); if (Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB_MR1) { date.getCalendarView().setFirstDayOfWeek(Calendar.MONDAY); } 

Or you can bind to the locale below:

 date.getCalendarView().setFirstDayOfWeek(Calendar.getInstance().getFirstDayOfWeek()); 

https://stackoverflow.com/a/14423516/5887158