// Path: app/src/main/java/cn/libery/calendar/MaterialCalendar/format/WeekDayFormatter.java
// public interface WeekDayFormatter {
//     /**
//      * Convert a given day of the week into a label
//      *
//      * @param dayOfWeek the day of the week as returned by {@linkplain java.util.Calendar#get(int)} for {@linkplain java.util.Calendar#DAY_OF_YEAR}
//      * @return a label for the day of week
//      */
//     CharSequence format(int dayOfWeek);
// 
//     WeekDayFormatter DEFAULT = new CalendarWeekDayFormatter(CalendarUtils.getInstance());
// }


import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Build;
import android.view.Gravity;
import android.widget.TextView;
import java.util.Calendar;
import cn.libery.calendar.MaterialCalendar.format.WeekDayFormatter;
package cn.libery.calendar.MaterialCalendar;




/**
 * Display a day of the week
 */
@SuppressLint("ViewConstructor")
class WeekDayView extends TextView {

    private WeekDayFormatter formatter = WeekDayFormatter.DEFAULT;
    private int dayOfWeek;

    public WeekDayView(Context context, int dayOfWeek) {
        super(context);

        setGravity(Gravity.CENTER);

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
            setTextAlignment(TEXT_ALIGNMENT_CENTER);
        }

        setDayOfWeek(dayOfWeek);
    }

    public void setWeekDayFormatter(WeekDayFormatter formatter) {
// Path: app/src/main/java/cn/libery/calendar/MaterialCalendar/format/WeekDayFormatter.java
// public interface WeekDayFormatter {
//     /**
//      * Convert a given day of the week into a label
//      *
//      * @param dayOfWeek the day of the week as returned by {@linkplain java.util.Calendar#get(int)} for {@linkplain java.util.Calendar#DAY_OF_YEAR}
//      * @return a label for the day of week
//      */
//     CharSequence format(int dayOfWeek);
// 
//     WeekDayFormatter DEFAULT = new CalendarWeekDayFormatter(CalendarUtils.getInstance());
// }


// Path: app/src/main/java/cn/libery/calendar/MaterialCalendar/WeekDayView.java
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Build;
import android.view.Gravity;
import android.widget.TextView;
import java.util.Calendar;
import cn.libery.calendar.MaterialCalendar.format.WeekDayFormatter;

package cn.libery.calendar.MaterialCalendar;




/**
 * Display a day of the week
 */
@SuppressLint("ViewConstructor")
class WeekDayView extends TextView {

    private WeekDayFormatter formatter = WeekDayFormatter.DEFAULT;
    private int dayOfWeek;

    public WeekDayView(Context context, int dayOfWeek) {
        super(context);

        setGravity(Gravity.CENTER);

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
            setTextAlignment(TEXT_ALIGNMENT_CENTER);
        }

        setDayOfWeek(dayOfWeek);
    }

    public void setWeekDayFormatter(WeekDayFormatter formatter) {
        this.formatter = formatter == null ? WeekDayFormatter.DEFAULT : formatter;