Android超炫日期日历控件:TimesSquare
2024-09-30 14:29:30
先看效果图:
使用说明:
在布局文件里:
<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);
源代码下载
最新文章
- jboss4.2.3建立oracle JMS应用
- 转: 关于 ssl的建立链接的过程
- 搜索插件:ack.vim
- JAX-RS -- Java API for RESTful Web Services
- c语言学习之基础知识点介绍(五):关系运算式和逻辑运算式
- Codevs 4768 跳石头 NOIP2015 DAY2 T1
- 客户端(C#)调用CXF搭建的webservice的出现一些问题记录
- SpringMVC进行文件的上传以及多文件的上传(转)
- 动态脚本,在js里面又写js
- js设置元素readonly属性注意事项
- STL源码剖析 迭代器(iterator)概念与编程技法(三)
- 关于Qt信号与槽机制的传递方向性研究(结论其实是错误的,但是可以看看分析过程)
- Node.js新手教程——怎样实现文件上传功能
- IIS7 URL Rewrite 用法实例
- mac系统不能使用127.0.0.2的解决方案
- PAT 1046
- RDMA调研报告&;一点随笔
- delphi 中出现dataset not in edit or insert mode的问题
- WebFormViewEngine及用户控件寻址bug
- ubuntu ndk 开发
热门文章
- super.getClass()与this.getClass()
- Java绘制艺术图形
- n每个计数的概率和发生骰子--动态规划
- oracle在SQLPLUS 和PLSQL建 job 的区别
- ios 类似的效果淘宝商品详细页面
- 警告: git command could not be found. Please create an alias or add it to yo
- Task的异步模式
- Properties类读写.properties配置文件
- NYNU_省赛选拔题(7)
- Tips &; Tricks:Apache log4j简明教程(一)