{"id":13396347,"url":"https://github.com/square/android-times-square","last_synced_at":"2025-05-14T05:10:39.449Z","repository":{"id":6678180,"uuid":"7923123","full_name":"square/android-times-square","owner":"square","description":"Standalone Android widget for picking a single date from a calendar view.","archived":false,"fork":false,"pushed_at":"2023-05-28T01:46:37.000Z","size":1541,"stargazers_count":4437,"open_issues_count":23,"forks_count":1185,"subscribers_count":225,"default_branch":"master","last_synced_at":"2025-04-11T00:03:22.000Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/square.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2013-01-30T20:28:27.000Z","updated_at":"2025-03-22T07:52:09.000Z","dependencies_parsed_at":"2022-07-12T05:01:09.359Z","dependency_job_id":"36649e82-9ae9-4ddb-855c-f1e743947df2","html_url":"https://github.com/square/android-times-square","commit_stats":{"total_commits":239,"total_committers":58,"mean_commits":4.120689655172414,"dds":0.7112970711297071,"last_synced_commit":"a1a8f2b50a9a8311a64237b9f6a814ba22b6be13"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fandroid-times-square","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fandroid-times-square/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fandroid-times-square/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fandroid-times-square/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/square","download_url":"https://codeload.github.com/square/android-times-square/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076850,"owners_count":22010611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T18:00:46.531Z","updated_at":"2025-05-14T05:10:39.417Z","avatar_url":"https://github.com/square.png","language":"Java","readme":"TimesSquare for Android\n==========================\n\nStandalone Android widget for picking a single date from a calendar view.\n\n![Screenshot](timesSquareScreenshot.png)\n\n\nUsage\n-----\n\nInclude `CalendarPickerView` in your layout XML.\n\n```xml\n\u003ccom.squareup.timessquare.CalendarPickerView\n    android:id=\"@+id/calendar_view\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    /\u003e\n```\n\nThis is a fairly large control so it is wise to give it ample space in your layout. On small\ndevices it is recommended to use a dialog, full-screen fragment, or dedicated activity. On larger\ndevices like tablets, displaying full-screen is not recommended. A fragment occupying part of the\nlayout or a dialog is a better choice.\n\nIn the `onCreate` of your activity/dialog or the `onCreateView` of your fragment, initialize the\nview with a range of valid dates as well as the currently selected date.\n\n```java\nCalendar nextYear = Calendar.getInstance();\nnextYear.add(Calendar.YEAR, 1);\n\nCalendarPickerView calendar = (CalendarPickerView) findViewById(R.id.calendar_view);\nDate today = new Date();\ncalendar.init(today, nextYear.getTime())\n    .withSelectedDate(today);\n```\n\nThe default mode of the view is to have one selectable date.  If you want the user to be able to\nselect multiple dates or a date range, use the inMode() method:\n\n```java\ncalendar.init(today, nextYear.getTime())\n    .inMode(RANGE);\n```\n\n\nDownload\n--------\n\nThe latest version can be downloaded in [zip][zip] and referenced by your application as a library\nproject.\n\nYou can also depend on the library through Maven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.squareup\u003c/groupId\u003e\n  \u003cartifactId\u003eandroid-times-square\u003c/artifactId\u003e\n  \u003cversion\u003e1.6.5\u003c/version\u003e\n  \u003ctype\u003eapklib\u003c/type\u003e\n\u003c/dependency\u003e\n```\nor Gradle:\n```groovy\ncompile 'com.squareup:android-times-square:1.6.5@aar'\n```\n\nSnapshots of the development version are available in [Sonatype's `snapshots` repository][snap].\n\n\nLicense\n-------\n\n    Copyright 2012 Square, Inc.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n\n [zip]: https://github.com/square/android-times-square/archive/master.zip\n [snap]: https://oss.sonatype.org/content/repositories/snapshots/\n","funding_links":[],"categories":["Index `(light-weight pages)`","Index","日历时间","Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquare%2Fandroid-times-square","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquare%2Fandroid-times-square","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquare%2Fandroid-times-square/lists"}