Material-calendarview: Calendar view is partially updated on Language change in Arabic

Created on 21 Feb 2017  路  2Comments  路  Source: prolificinteractive/material-calendarview

Hi Guys,

I am using material calendar view in one of my app, When i switch to arabic language sometimes calendar is not fully updated in case of arabic language.

Please find the attached screenshot.

screenshot_ -

Most helpful comment

You can use the setTitleFormatter method, for example :

materialCalendarView.setTitleFormatter(day -> {
            Locale locale = new Locale("ar");
            DateFormat dateFormat = new SimpleDateFormat("LLLL yyyy", locale);
            return dateFormat.format(day.getDate());
        });

All 2 comments

You can use the setTitleFormatter method, for example :

materialCalendarView.setTitleFormatter(day -> {
            Locale locale = new Locale("ar");
            DateFormat dateFormat = new SimpleDateFormat("LLLL yyyy", locale);
            return dateFormat.format(day.getDate());
        });

is there any way to show dates in Arabic??

Was this page helpful?
0 / 5 - 0 ratings