先看效果图:


使用说明:

在布局文件里:

<com.squareup.timessquare.CalendarPickerView
android:id="@+id/calendar_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>

在Java代码中:

Calendar nextYear = Calendar.getInstance();
nextYear.add(Calendar.YEAR, 1); CalendarPickerView calendar = (CalendarPickerView) findViewById(R.id.calendar_view);
Date today = new Date();
calendar.init(today, nextYear.getTime())
.withSelectedDate(today);

源代码下载

最新文章

  1. jboss4.2.3建立oracle JMS应用
  2. 转: 关于 ssl的建立链接的过程
  3. 搜索插件:ack.vim
  4. JAX-RS -- Java API for RESTful Web Services
  5. c语言学习之基础知识点介绍(五):关系运算式和逻辑运算式
  6. Codevs 4768 跳石头 NOIP2015 DAY2 T1
  7. 客户端(C#)调用CXF搭建的webservice的出现一些问题记录
  8. SpringMVC进行文件的上传以及多文件的上传(转)
  9. 动态脚本,在js里面又写js
  10. js设置元素readonly属性注意事项
  11. STL源码剖析 迭代器(iterator)概念与编程技法(三)
  12. 关于Qt信号与槽机制的传递方向性研究(结论其实是错误的,但是可以看看分析过程)
  13. Node.js新手教程——怎样实现文件上传功能
  14. IIS7 URL Rewrite 用法实例
  15. mac系统不能使用127.0.0.2的解决方案
  16. PAT 1046
  17. RDMA调研报告&amp;一点随笔
  18. delphi 中出现dataset not in edit or insert mode的问题
  19. WebFormViewEngine及用户控件寻址bug
  20. ubuntu ndk 开发

热门文章

  1. super.getClass()与this.getClass()
  2. Java绘制艺术图形
  3. n每个计数的概率和发生骰子--动态规划
  4. oracle在SQLPLUS 和PLSQL建 job 的区别
  5. ios 类似的效果淘宝商品详细页面
  6. 警告: git command could not be found. Please create an alias or add it to yo
  7. Task的异步模式
  8. Properties类读写.properties配置文件
  9. NYNU_省赛选拔题(7)
  10. Tips &amp; Tricks:Apache log4j简明教程(一)