56

自定义 Behavior,实现嵌套滑动、平滑切换周月视图的日历

 6 years ago
source link: https://juejin.im/post/5ab9c553f265da237f1e5079
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
使用 CoordinateLayout 可以协调它的子布局,实现滑动效果的联动,它的滑动效果由 Behavior 实现。以前用过小米日历,对它滑动平滑切换日月视图的效果印象深刻。本文尝试用自定义 Behavior 实现一个带有这种效果的日历。 简介 先上个小米

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK