Code Monkey home page Code Monkey logo

calendareventviewdemo's Introduction

CalendarEventViewDemo

这是一个自定义的周历,月历,以及时间布局的demo

此项目不适合直接放到自己的项目中,需要自己改动部分代码去适合自己的业务逻辑 主要业务逻辑在weekCalendarEventview 中

##效果图 效果图

效果图 ##功能包含

  • 周历月历联动
  • 当前时间的红线展示
  • 过去时间置灰展示
  • 事件区域事件的回调的监听
  • 空白可以点击的区域的时间回调监听
  • 选择开始和结束时间并返回 ##代码的结构

src

main

java

cn.yky.calendarview

activity 时间日历控件界面

adapter 周历,月历,周历事件控件的适配器

anims 周历和月历上下滑动的动画切换

bean 存放的数据模型

inter 周历,月历的点击选中事件的回调监听

utils 存放的日期,集合,数据和字符串的工具类

view 存放的自定义控件

res

values

attrs 存放的自定义属性

需要用到的知识点

  • 自定义view滑动
  • 自定义控件画布的切割
  • 自定义控件的联调滑动
  • ....

##联系方式

本人技术有限,还有很多不完美的地方,欢迎指出.(写作不易,谢谢您的star支持)

calendareventviewdemo's People

Contributors

yukuoyuan avatar

Watchers

James Cloos avatar angcyo avatar  avatar

Forkers

handy505824

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.