• Stars
    star
    505
  • Rank 87,373 (Top 2 %)
  • Language
    Kotlin
  • License
    MIT License
  • Created almost 8 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A date time range picker for android written in Kotlin

DateTimeRangePicker

A date time range picker for android

No start date time and no end date time Pick start date

Pick start time Have start date time and end date time

Usage

Firstly, grab latest release of the library via JitPack. And note that, it utilizes Joda-Time to process some date time logic under the hood. So you might need to set up Joda-Time properly.

With start and end date times specified:

val intent = DateTimeRangePickerActivity.newIntent(
    context,
    TimeZone.getDefault(),
    DateTime.now().millis,
    DateTime.now().plusDays(2).millis
)
activity.startActivityForResult(intent, RQC_PICK_DATE_TIME_RANGE)

Or without start and end date times:

val intent = DateTimeRangePickerActivity.newIntent(
    context,
    TimeZone.getDefault(),
    null, null
)
activity.startActivityForResult(intent, RQC_PICK_DATE_TIME_RANGE)

At onActivityResult(), DateTimeRangePickerActivity will return an Intent data having following:

  • startTimeInMillis as Long
  • endTimeInMillis as Long
  • timeZone as String

Demo

Run 2 following instrumentation tests on DateTimeRangePickerActivityTest to see the 2 usages:

  • withoutStartAndEndDateTimes()
  • withStartAndEndDateTimes()

More Repositories

1

tripkit-leaflet

Leaflet TripGo Routing Plugin
JavaScript
40
star
2

RxProperty

RxJava binding APIs for observable fields and observable collections from the Data Binding Library
Kotlin
17
star
3

TGCardViewController

Card-based view controller for apps that display content cards with accompanying maps, similar to Apple Maps.
Swift
9
star
4

StringResourcesConverter

String Resources Converter
Kotlin
7
star
5

tripkit-ios

SkedGo's TripKit for iOS (and macOS)
Swift
6
star
6

fastgo-react-native

Sample app for demo the API platform and Blog Post using React-Native
JavaScript
5
star
7

WeekPicker

Java
5
star
8

tripkit-android

SkedGo's TripKit for Android
Java
4
star
9

tripgo-api

Documentation, sample code and issue tracking for the TripGo API
HTML
4
star
10

RxLifecycleComponents

A collection of LifecycleProviders based on RxLifecycle
Kotlin
3
star
11

common-views

Implements a variety of UI-related components shared between TripGo and RioGo
Java
3
star
12

TSP-APIs

Recommended APIs for transport service providers
HTML
3
star
13

bus

A reactive event bus for Android
Java
3
star
14

sqlite-utils

Collection of util classes that facilitates working with SQLiteOpenHelper
Java
2
star
15

wheel

Java
2
star
16

ChartViewForAndroid

Java
2
star
17

GeoMonitor

iOS library for background monitoring of a user's movement
Swift
2
star
18

ActivityAnimations

Collection of built-in activity animations for TripGo
Java
1
star
19

de-nuremberg-api

TSP Connectors for Nuremberg
Swift
1
star
20

translations

Translation files used across the SkedGo family of products
1
star
21

rx-lifecycle

Java
1
star
22

XLIFFtoAndroidStringsConverter

Java
1
star
23

AndroidToXLIFFStringsConverter

Java
1
star
24

ChartView

Java
1
star
25

IOStoAndroidStringsConverter

iOS Localizable.strings to Android strings.xml converter tool
Java
1
star
26

loader-utils

Collection of built-in lifecycle-aware Loader implementations
Java
1
star
27

tripkit-android-ui

TripKitUI for Android
Kotlin
1
star