CalendarView
CalendarView copied to clipboard
大佬 这个库要实现月垂直列表就无敌了
就像这样
之前也有人提过:https://github.com/huanghaibin-dev/CalendarView/issues/360
他有 但是是收费得
他有 但是是收费得 你知道怎么收费吗
我fork
作者3.7.1
的版本, 实现了垂直列表日历
和垂直滚动日历
.
-
垂直列表日历
基于RecyclerView
实现 -
垂直滚动日历
通过交换ViewPager
的TouchEvent
实现
使用方式如下:
加入仓库地址
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
加入依赖
implementation 'com.github.angcyo:CalendarView:3.7.1.15'
垂直滚动日历
使用方式
mCalendarView.getMonthViewPager().setOrientation(LinearLayout.VERTICAL);
垂直列表日历
使用方式
使用VerticalCalendarView
控件即可.
com.haibin.calendarview.VerticalCalendarView
开源地址
感谢作者的开源库!
https://github.com/angcyo/CalendarView
我
fork
作者3.7.1
的版本, 实现了垂直列表日历
和垂直滚动日历
.
垂直列表日历
基于RecyclerView
实现垂直滚动日历
通过交换ViewPager
的TouchEvent
实现使用方式如下:
加入仓库地址
allprojects { repositories { ... maven { url 'https://jitpack.io' } } }
加入依赖
implementation 'com.github.angcyo:CalendarView:3.7.1.15'
垂直滚动日历
使用方式mCalendarView.getMonthViewPager().setOrientation(LinearLayout.VERTICAL);
垂直列表日历
使用方式使用
VerticalCalendarView
控件即可.com.haibin.calendarview.VerticalCalendarView
开源地址
感谢作者的开源库!
https://github.com/angcyo/CalendarView
试了一下,用VerticalCalendarView#setRange方法会NPE,如图
似乎是new MonthViewPager的时候没有把delegate设置进去而导致的
3.7.1.21
已修复
implementation 'com.github.angcyo:CalendarView:3.7.1.21'
3.7.1.21
已修复implementation 'com.github.angcyo:CalendarView:3.7.1.21'
感谢!
船新功能加入, 基于原库
3.7.1
垂直列表
展示月视图垂直滚动
切换月视图- 月/周视图中的
日期切换动画
touchDown
按压反馈提示效果传送门 HI 你好,我想定义垂直列表月份的年月显示的时候遇到了VerticalMonthRecyclerView.VerticalMonthViewHolder为protected的问题,因为想换成其他显示方式,但此处没有完全开放出来
若能将year 和month一并在onVerticalItemInitialize开放出来自定义年月显示,非常感谢!
3.7.1.25
已开放.
3.7.1.25
已开放.
感谢,已尝试
@angcyo 发现一个bug,在竖向月份中,选中其他日期后,无法把当天日期改成选中的状态
需要在VerticalCalendarView添加一个
public void updateSelectStatus(){
monthRecyclerView.updateSelected();
}
方便他人使用,感谢~
法把当天日期改成选中的
怎么复现这个BUG?
@angcyo 我是将VerticalCalendarView设置在dialog中,需要点击一个button时候跳转今日并且是选中今日,使用scrollToCurrent(不管带哪个参数的都不醒)并不可以,最后我的解决办法是: mVerticalCalendarView.scrollToCalendar(mVerticalCalendarView.getCurYear(), mVerticalCalendarView.getCurMonth(), mVerticalCalendarView.getCurDay(), true); Calendar selectedCalendar = mVerticalCalendarView.getSelectedCalendar(); selectedCalendar.setYear(mVerticalCalendarView.getCurYear()); selectedCalendar.setMonth(mVerticalCalendarView.getCurMonth()); selectedCalendar.setDay(mVerticalCalendarView.getCurDay()); mVerticalCalendarView.updateSelectStatus();
@angcyo 我是将VerticalCalendarView设置在dialog中,需要点击一个button时候跳转今日并且是选中今日,使用scrollToCurrent(不管带哪个参数的都不醒)并不可以,最后我的解决办法是: mVerticalCalendarView.scrollToCalendar(mVerticalCalendarView.getCurYear(), mVerticalCalendarView.getCurMonth(), mVerticalCalendarView.getCurDay(), true); Calendar selectedCalendar = mVerticalCalendarView.getSelectedCalendar(); selectedCalendar.setYear(mVerticalCalendarView.getCurYear()); selectedCalendar.setMonth(mVerticalCalendarView.getCurMonth()); selectedCalendar.setDay(mVerticalCalendarView.getCurDay()); mVerticalCalendarView.updateSelectStatus();
3.7.1.26
已修复
@angcyo 设置calendar_match_parent全屏日历后,垂直滚动出现bug
@angcyo 设置calendar_match_parent全屏日历后,垂直滚动出现bug
什么bug?
@angcyo 设置calendar_match_parent全屏日历后,垂直滚动出现bug
什么bug?
点击和滑动事件偶尔失效
带吸顶效果:https://github.com/michaellee123/CalendarView 😄