tejpratap46/RecyclerCalendarAndroid

Option to set first day of the week.

Closed this issue · 1 comments

Some countries has different start day of week, give option to set any day as first day of the week.

Fixed:

While setting your adapter, just call following code to set start of week

val configuration: RecyclerCalendarConfiguration =
    RecyclerCalendarConfiguration(
        calenderViewType = RecyclerCalendarConfiguration.CalenderViewType.VERTICAL,
        calendarLocale = Locale.getDefault(),
        includeMonthHeader = true
    )

configuration.weekStartOffset = RecyclerCalendarConfiguration.START_DAY_OF_WEEK.MONDAY