Giter Club home page Giter Club logo

Comments (8)

huanghaibin-dev avatar huanghaibin-dev commented on August 21, 2024

谢谢支持,我过两天忙完发布新版本,增加更多attr,以及调整对应的自定义UI绘制,让自定义日历UI更加好懂一点

from calendarview.

dstweihao avatar dstweihao commented on August 21, 2024

感谢你的回复,你好,我想问一下,如果和CoordinatorLayout+AppLayout+TabLayout+ViewRecyclerView一起时候,怎么在判断当CalendarLayout收缩起来时,并且TabLayout也滑动至CalendarLayout下面时,可以把CalendarLayout滑出界面,然后TabLayout就固定在TooBar下面了。不然的话,CalendarLayout还存在,那么就不能让ViewPager更好的利于界面空间了。谢谢了。

from calendarview.

huanghaibin-dev avatar huanghaibin-dev commented on August 21, 2024

你需要个CalendarLayout收缩的或者展开的回调是吧,目前是不太建议这个控件放AppLayout里面的

from calendarview.

dstweihao avatar dstweihao commented on August 21, 2024

我试过放在AppLayout里面,但是点击年份选择,没有弹出选择窗口,其他还没发现问题,现在我的解决方式是使用CalendarLayout来包裹CoordinatorLayout+AppBarLayout,这样没有出现问题的。现在研究上滑时,TabLayout把收缩的CalendarLayout顶出界面,并固定在TooBar下方,只是我自定义View和滑动处理方面很薄弱,只能边学习边摸索了。

from calendarview.

huanghaibin-dev avatar huanghaibin-dev commented on August 21, 2024

@bravewh 新版本已经发布,更加方便自定义了

from calendarview.

dstweihao avatar dstweihao commented on August 21, 2024

谢谢,辛苦了,加油。

from calendarview.

dstweihao avatar dstweihao commented on August 21, 2024

楼主,有研究过,将CalendarLayout放入AppLayout或者NestedScrollView后,点击年月选择无法弹出的原因么?并且不需要周视图,只要月视图就好。我虽然因为弹出年月选择,所以只能在自己的项目中实现这个功能了,但是,还是很想知道这个问题的答案,而且,后期楼主会添加记事或者闹钟提醒的功能么?

from calendarview.

huanghaibin-dev avatar huanghaibin-dev commented on August 21, 2024

@jweihao 当前的版本这个的确是不兼容的,不弹出的原因也很简单,这个控件依赖月视图来计算高度,如果放入NestedScrollView,会导致初始化高度计算为0,我待会发布改进。当然我的个人建议是尽可能不要和其它滚动控件一同使用的,因为这个控件不是特别兼容NestedScroll特性

from calendarview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.