SublimePicker

A material-styled android view that provisions picking of a date, time & recurrence option, all from a single user-interface.

Subscribe to updates I use SublimePicker


Statistics on SublimePicker

Number of watchers on Github 1988
Number of open issues 49
Average time to close an issue 3 months
Main language Java
Open pull requests 5+
Closed pull requests 1+
Last commit over 2 years ago
Repo Created over 3 years ago
Repo Last Updated 8 months ago
Size 18.2 MB
Organization / Authorvikramkakkar
Contributors1
Page Updated
Do you use SublimePicker? Leave a review!
View open issues (49)
View SublimePicker activity
View on github
Latest Open Source Launches
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating SublimePicker for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

SublimePicker

A customizable view that provisions picking of a date, time & recurrence option, all from a single user-interface. You can also view 'SublimePicker' as a collection of material-styled (API 23) DatePicker, TimePicker & RecurrencePicker, backported to API 14.

With the release of version 2, SublimePicker now allows date-range selection.

All three components have been converted to views, which enables us to add/embed them anywhere - add them to a 'Dialog', a 'PopupWindow', or use them as any regular android widget.

Almost all styling possibilities have been exposed through attrs. If something has been missed, please bring it to my attention.

SublimePicker provides a single point of entry to all three pickers. What I mean is that once SublimePicker is available for interaction, the user can select a date, a time & a recurrence option without leaving the picker.

Gradle dependency

compile 'com.appeaser.sublimepickerlibrary:sublimepickerlibrary:2.1.1'

Walkthrough

Following screenshots have been taken from the sample application: Get it on Google Play

Launching into DatePicker:

Version 2 allows date-range selection using SublimeOptions#setCanPickDateRange(boolean). Picking date range is one fluent gesture which begins with a long-press on the intended start-date, followed by a drag onto the intended end-date. The range can span as many days, months or years, as needed. During a drag, approaching the left/right edge of date picker scrolls the previous/next month into view.

Date range selection:

Landscape:

Date range selection spanning multiple months:

Button at bottom-left corner can be used to switch to TimePicker:

Landscape:

The overflow button at top-right opens the RecurrencePicker:

Choosing Custom... from this menu brings you to RecurrenceOptionCreator:

Picking Until a date from the bottom spinner & clicking on the date shows a stripped down version of DatePicker:

Sample Application:

Results of the selection in sample application (single date):

Results of the selection in sample application (date range):

How-tos will be added in a day or two...

License

Copyright (c) 2015 Vikram Kakkar

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.
SublimePicker open issues Ask a question     (View All Issues)
  • about 2 years Cannot change style of Sublime Picker
  • about 2 years Be able to style a Picker inidividually
  • about 2 years How do I disable selection on week ends and holidays?
  • about 2 years How can we get a date and time range in a single swep
  • about 2 years Can not perform this action after onSaveInstanceState
  • about 2 years DateRange launchMode
  • over 2 years Changing Locale Datepicker header shows correct translation but month view is ignoring locale
  • over 2 years Using a style causes crash
  • over 2 years When I set date range, if the max date before current date, I met a bug
  • over 2 years Custom attributes for SublimePicker not working
  • over 2 years android.view.InflateException: Binary XML file line #2: Error inflating class com.appeaser.sublimepickerlibrary.SublimePicker
  • over 2 years Function request: allow selection of multiple dates
  • over 2 years Append RRULE: to the beginning of every generated rrule.
  • over 2 years Documentation
  • over 2 years TimePicker is not shown on landscape orientation
  • over 2 years Convert To Persian Calendar
  • over 2 years set default for RecurrenceRule
  • over 2 years Date Picker not working in Landscape Mode
  • almost 3 years Refactoring WIP
  • about 3 years Support for prompting seconds in timepicker?
  • over 3 years 24h support a bit wrong
  • over 3 years setMinTime, setMaxTime?
SublimePicker open pull requests (View All Pulls)
  • Added API 15 support
  • Add SublimeOptions.firstDayOfWeek
  • Feature/configurable text recurrence
  • Upgrade SDK and Google Support Library Version
  • Feature/date range without long press
SublimePicker list of languages used
Other projects in Java