All Projects → oheyadam → BottomSheetTimeRangePicker

oheyadam / BottomSheetTimeRangePicker

Licence: Apache-2.0 license
A tiny Android library for displaying a TimePicker with From and To ranges as a BottomSheetDialogFragment.

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to BottomSheetTimeRangePicker

nativescript-datetimepicker
Plugin with date and time picking fields
Stars: ✭ 26 (-56.67%)
Mutual labels:  timepickerdialog, datepickerdialog
BeechatNetwork
Open source, peer-to-peer, radio communication messaging.
Stars: ✭ 37 (-38.33%)
Mutual labels:  range
Vuetify Daterange Picker
The missing date range picker for Vuetify JS you have been looking for.
Stars: ✭ 192 (+220%)
Mutual labels:  range
TimeRangePicker
A customizable, easy-to-use, and functional circular time range picker library for Android. Use this library to mimic Apple's iOS or Samsung's bedtime picker.
Stars: ✭ 266 (+343.33%)
Mutual labels:  range
Codejam
Set of handy reusable .NET components that can simplify your daily work and save your time when you copy and paste your favorite helper methods and classes from one project to another
Stars: ✭ 217 (+261.67%)
Mutual labels:  range
slice
A JavaScript implementation of Python's negative indexing and extended slice syntax.
Stars: ✭ 53 (-11.67%)
Mutual labels:  range
Rangeseekbar
A beautiful and powerful SeekBar what supports single、 range、steps、vetical、custom( 一款美观强大的支持单向、双向范围选择、分步、垂直、高度自定义的SeekBar)
Stars: ✭ 2,037 (+3295%)
Mutual labels:  range
jquery-datepicker
A full-featured datepicker jquery plugin
Stars: ✭ 35 (-41.67%)
Mutual labels:  range
Fastrange
A fast alternative to the modulo reduction
Stars: ✭ 230 (+283.33%)
Mutual labels:  range
vue-histogram-slider
Range slider with histogram for Vue.js
Stars: ✭ 111 (+85%)
Mutual labels:  range
Ion.rangeslider
jQuery only range slider
Stars: ✭ 2,494 (+4056.67%)
Mutual labels:  range
Rangetouch
A super tiny library to make `<input type='range'>` sliders work better on touch devices
Stars: ✭ 224 (+273.33%)
Mutual labels:  range
Chocobo-Date-Range-Picker
🗓️ Component - The Date Range Picker easier to use in AngularJS.
Stars: ✭ 23 (-61.67%)
Mutual labels:  range
Lightpick
(deprecated) Check out the new date picker Litepicker
Stars: ✭ 204 (+240%)
Mutual labels:  range
react-native-date-ranges
idea from react-native-dates >
Stars: ✭ 68 (+13.33%)
Mutual labels:  range
Iptools
PHP Library for manipulating network addresses (IPv4 and IPv6)
Stars: ✭ 163 (+171.67%)
Mutual labels:  range
http-range
A PHP library for parsing and handling HTTP range requests.
Stars: ✭ 30 (-50%)
Mutual labels:  range
LinqBenchmarks
Benchmarking LINQ and alternative implementations
Stars: ✭ 138 (+130%)
Mutual labels:  range
RangeSeekBar
Android Range Seekbar library that support Min & Max Value for API level >= 16 and support Step Value
Stars: ✭ 97 (+61.67%)
Mutual labels:  range
SheetSelection
An Android library for display list and be able to select the item as BottomSheet.
Stars: ✭ 85 (+41.67%)
Mutual labels:  bottomsheetdialogfragment

License Android Arsenal

BottomSheetPickers

BottomSheetPickers is a tiny Android library for adding Date and Time Pickers as Modal BottomSheetDialogs with From and To ranges.

The library is inspired by Titto Jose's TimeRangePicker.

Screenshots

Installation

Add Jitpack to your project build.gralde file

  allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

}

Then add this dependency to your app build.gradle file.

  dependencies {
        implementation 'com.github.adawoud:BottomSheetTimeRangePicker:latest-release'
}

Usage

Make sure your Activity/Fragment implements OnTimeRangeSelectedListener, and then you can just do this:

BottomSheetTimeRangePicker
	.newInstance(this, DateFormat.is24HourFormat(this))
	.show(supportFragmentManager, tagBottomSheetTimeRangePicker)

You can see this in action in the sample app here

Customization

You can customize things like the text displayed in the From and To tabs, the text that appears on the positive action button, and set intial times for both timepickers

BottomSheetTimeRangePicker
	.tabLabels(startTabLabel = "Hello", endTabLabel = "World")
	.doneButtonLabel("Ok")
	.startTimeInitialHour(2)
    	.startTimeInitialMinute(11)
    	.endTimeInitialHour(10)
    	.endTimeInitialMinute(22)
    	.newInstance(this, DateFormat.is24HourFormat(this))
   	.show(supportFragmentManager, tagBottomSheetTimeRangePicker)

License

Copyright 2018 Ahmad Dawoud

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].