CalendarView icon indicating copy to clipboard operation
CalendarView copied to clipboard

大佬 这个库要实现月垂直列表就无敌了

Open KeQian opened this issue 3 years ago • 19 comments

image 就像这样 之前也有人提过:https://github.com/huanghaibin-dev/CalendarView/issues/360

KeQian avatar Jun 04 '21 09:06 KeQian

他有 但是是收费得

HelloAnyu avatar Jun 24 '21 08:06 HelloAnyu

他有 但是是收费得 你知道怎么收费吗

KeQian avatar Jul 12 '21 12:07 KeQian

fork作者3.7.1的版本, 实现了垂直列表日历垂直滚动日历.

  • 垂直列表日历 基于RecyclerView实现
  • 垂直滚动日历 通过交换ViewPagerTouchEvent实现

使用方式如下:

加入仓库地址

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

angcyo avatar Oct 21 '21 09:10 angcyo

fork作者3.7.1的版本, 实现了垂直列表日历垂直滚动日历.

  • 垂直列表日历 基于RecyclerView实现
  • 垂直滚动日历 通过交换ViewPagerTouchEvent实现

使用方式如下:

加入仓库地址

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,如图 image image image 似乎是new MonthViewPager的时候没有把delegate设置进去而导致的

DarkAdventurer93 avatar Oct 22 '21 10:10 DarkAdventurer93

3.7.1.21已修复

implementation 'com.github.angcyo:CalendarView:3.7.1.21'

angcyo avatar Oct 22 '21 12:10 angcyo

3.7.1.21已修复

implementation 'com.github.angcyo:CalendarView:3.7.1.21'

感谢!

DarkAdventurer93 avatar Oct 25 '21 01:10 DarkAdventurer93

船新功能加入, 基于原库3.7.1

  • 垂直列表展示月视图
  • 垂直滚动切换月视图
  • 月/周视图中的日期切换动画
  • touchDown按压反馈提示效果

传送门

angcyo avatar Oct 25 '21 07:10 angcyo

船新功能加入, 基于原库3.7.1

  • 垂直列表展示月视图
  • 垂直滚动切换月视图
  • 月/周视图中的日期切换动画
  • touchDown按压反馈提示效果

传送门

点赞!

DarkAdventurer93 avatar Oct 26 '21 02:10 DarkAdventurer93

船新功能加入, 基于原库3.7.1

  • 垂直列表展示月视图
  • 垂直滚动切换月视图
  • 月/周视图中的日期切换动画
  • touchDown按压反馈提示效果

传送门 HI 你好,我想定义垂直列表月份的年月显示的时候遇到了VerticalMonthRecyclerView.VerticalMonthViewHolder为protected的问题,因为想换成其他显示方式,但此处没有完全开放出来 image

image 若能将year 和month一并在onVerticalItemInitialize开放出来自定义年月显示,非常感谢!

DarkAdventurer93 avatar Oct 26 '21 07:10 DarkAdventurer93

3.7.1.25已开放.

angcyo avatar Oct 26 '21 08:10 angcyo

3.7.1.25已开放.

感谢,已尝试

DarkAdventurer93 avatar Oct 26 '21 09:10 DarkAdventurer93

@angcyo 发现一个bug,在竖向月份中,选中其他日期后,无法把当天日期改成选中的状态

需要在VerticalCalendarView添加一个
public void updateSelectStatus(){ monthRecyclerView.updateSelected(); }

方便他人使用,感谢~

keybalabala avatar Oct 29 '21 11:10 keybalabala

法把当天日期改成选中的

怎么复现这个BUG?

angcyo avatar Nov 01 '21 02:11 angcyo

@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();

keybalabala avatar Nov 02 '21 01:11 keybalabala

@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 avatar Nov 02 '21 02:11 angcyo

@angcyo 设置calendar_match_parent全屏日历后,垂直滚动出现bug

jansonjoan avatar Nov 12 '21 12:11 jansonjoan

@angcyo 设置calendar_match_parent全屏日历后,垂直滚动出现bug

什么bug?

angcyo avatar Nov 12 '21 12:11 angcyo

@angcyo 设置calendar_match_parent全屏日历后,垂直滚动出现bug

什么bug?

点击和滑动事件偶尔失效

jansonjoan avatar Nov 12 '21 13:11 jansonjoan

带吸顶效果:https://github.com/michaellee123/CalendarView 😄

michaellee123 avatar May 11 '22 07:05 michaellee123