Android超炫日期日历控件:TimesSquare
时间:2014-07-19 02:27:56
收藏:0
阅读:455
先看效果图:

使用说明:
在布局文件中:
<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);源码下载
原文:http://blog.csdn.net/linglongxin24/article/details/37932587
评论(0)