1、在module中添加相关依赖
implementation 'com.haibin:calendarview:3.4.8'
implementation 'com.github.bumptech.glide:glide:3.7.0'
//noinspection GradleDependency
implementation 'com.android.support:appcompat-v7:27.1.1'
//noinspection GradleDependency
implementation 'com.android.support:design:27.1.1'
2、添加资源文件 values/attrs.xml
3、如果仅使用日历,不用滑动收缩,则在布局文件添加
android:id="@+id/calendarView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#fff"
app:month_view="com.haibin.calendarviewproject.simple.SimpleCalendarCardView"
app:week_view="com.haibin.calendarviewproject.simple.SimpleWeekView"
app:week_bar_view="com.haibin.calendarviewproject.EnglishWeekBar&#