TimesSquare for Android
==========================
Standalone Android widget for picking a single date from a calendar view.
![Screenshot](timesSquareScreenshot.png)
Usage
-----
Include `CalendarPickerView` in your layout XML.
```xml
<com.squareup.timessquare.CalendarPickerView
android:id="@+id/calendar_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
```
This is a fairly large control so it is wise to give it ample space in your layout. On small
devices it is recommended to use a dialog, full-screen fragment, or dedicated activity. On larger
devices like tablets, displaying full-screen is not recommended. A fragment occupying part of the
layout or a dialog is a better choice.
In the `onCreate` of your activity/dialog or the `onCreateView` of your fragment, initialize the
view with a range of valid dates as well as the currently selected date.
```java
Calendar nextYear = Calendar.getInstance();
nextYear.add(Calendar.YEAR, 1);
CalendarPickerView calendar = (CalendarPickerView) findViewById(R.id.calendar_view);
calendar.init(new Date(), new Date(), nextYear.getTime());
```
To retrieve the currently selected date, call `getSelectedDate()` on the view.
Download
--------
The latest version can be downloaded in [zip][zip] and referenced by your application as a library
project.
You can also depend on the library through Maven:
```xml
<dependency>
<groupId>com.squareup</groupId>
<artifactId>android-times-square</artifactId>
<version>(insert latest version)</version>
<type>apklib</type>
</dependency>
```
License
-------
Copyright 2012 Square, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
[zip]: https://github.com/square/android-times-square/archive/master.zip
没有合适的资源?快使用搜索试试~ 我知道了~
android time日历
共37个文件
xml:16个
java:9个
png:5个
5星 · 超过95%的资源 需积分: 10 13 下载量 193 浏览量
2013-03-06
12:30:29
上传
评论
收藏 235KB ZIP 举报
温馨提示
新发现的android端日历空间,很好用,拿来分享,times-square-parent
资源推荐
资源详情
资源评论
收起资源包目录
square-android-times-square-android-times-square-parent-1.0.3-3-g9ff34f7.zip (37个子文件)
square-android-times-square-9ff34f7
pom.xml 4KB
sample
pom.xml 1KB
res
drawable-hdpi
icon.png 5KB
drawable-xhdpi
icon.png 7KB
drawable-xxhdpi
icon.png 12KB
values
strings.xml 121B
drawable-mdpi
icon.png 3KB
layout
calendar_picker.xml 842B
src
com
squareup
timessquare
sample
SampleTimesSquareActivity.java 1KB
project.properties 400B
AndroidManifest.xml 905B
checkstyle.xml 5KB
library
pom.xml 2KB
res
color
calendar_text_selector.xml 558B
calendar_bg_selector.xml 676B
values
colors.xml 568B
strings.xml 277B
styles.xml 955B
dimens.xml 340B
layout
month.xml 2KB
week.xml 1KB
test
com
squareup
timessquare
CalendarPickerViewTest.java 10KB
src
com
squareup
timessquare
MonthDescriptor.java 672B
MonthView.java 3KB
CalendarPickerView.java 11KB
CalendarGridView.java 4KB
CalendarRowView.java 3KB
Logr.java 406B
MonthCellDescriptor.java 1KB
project.properties 382B
AndroidManifest.xml 292B
CONTRIBUTING.md 737B
.gitignore 142B
CHANGELOG.md 491B
README.md 2KB
timesSquareScreenshot.png 172KB
LICENSE.txt 11KB
共 37 条
- 1
资源评论
- 墨雪瞳2013-03-06Android中很实用的小工具。
- king138284734122013-04-06不错的一个小工具
- cyy_002013-06-08挺简单的工具,实用~
- changzhijiang72013-03-06挺好的一款Android小工具
linuxcjh
- 粉丝: 15
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功