GithubHelp home page GithubHelp logo

想问下 怎么才能实现 不用滑动下面的Recyclerview 上下滑动日历就可以控制日历周月切换啊 .. about supercalendar HOT 4 CLOSED

magicmashroom avatar magicmashroom commented on August 26, 2024
想问下 怎么才能实现 不用滑动下面的Recyclerview 上下滑动日历就可以控制日历周月切换啊 ..

from supercalendar.

Comments (4)

ixiangfeng avatar ixiangfeng commented on August 26, 2024

我看了下小米的日历上下滑动日历部分也是可以的,想了下可以在Calendar的onTouchEvent处理,代码还没理清楚,不知道还有没有别的方法,还有把RecyclerView改用系统的Behavior滑动很自然,楼主的估计还可以改善下

from supercalendar.

ynpl avatar ynpl commented on August 26, 2024

@MagicMashRoom

from supercalendar.

HelloWym avatar HelloWym commented on August 26, 2024

我也想问这个问题,怎么才能实现 不用滑动下面的Recyclerview 上下滑动日历就可以控制日历周月切换啊 ..

from supercalendar.

MagicMashRoom avatar MagicMashRoom commented on August 26, 2024

项目实现的机制是利用了协调布局 coordinatelayout 如果想让上半部分的布局也会触发周月日历切换的话 也应该利用到协调布局 这个我还没有实现 各位如果有时间可以尝试一下

from supercalendar.

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.