Code Monkey home page Code Monkey logo

calendarview's Introduction

CalendarView

包含三个自定义View 日历仪表盘 圆盘

这是使用RecyclerView做的日历,比之前ViewPager不管从逻辑,功能更加强大,实现更加简单。之前ViewPager的日历没有功能逻辑分离,这次提供全新IDrawFormat接口,比如你需要针对某些日期增加标签,你就可以实现IDrawFormat,然后addDrawFormat就可以了,这样就实现标签和其他逻辑混合导致逻辑混乱,按顺序多层绘制,默认只提供文字层(日历日期和农历),但也需要自己add。你可以设置先后顺序,完美实现所有功能。可以支持任何样式。当前前提你会一点Android canvas绘制。月模式也完成,以后会提供小米日历类似功能。

github

github

日历 支持翻页,点击日期,日期状态

github

仪表盘 可根据配置改变圆弧,设置字体颜色和配置颜色,指针大小,字体大小打开动画等

github

圆盘 可根据配置改变个数,支持点击单个圆弧回调,设置字体和配置颜色,分割线,阴影打开动画等

github

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.