Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/ehsunshine/colored-time-selector

A smart colored time selector. Users can select just free time with a handy colorful range selector.
https://github.com/ehsunshine/colored-time-selector

colored range selector time

Last synced: about 1 month ago
JSON representation

A smart colored time selector. Users can select just free time with a handy colorful range selector.

Lists

README

        

[![Download](https://api.bintray.com/packages/ehsun/maven/colored-time-range-selector/images/download.svg)](https://bintray.com/ehsun/maven/colored-time-range-selector/_latestVersion)
[![Android Arsenal]( https://img.shields.io/badge/Android%20Arsenal-colored--time--selector-green.svg?style=flat )]( https://android-arsenal.com/details/1/6634 )
[![GitHub license](https://img.shields.io/github/license/ehsunshine/colored-time-selector.svg)](https://github.com/ehsunshine/colored-time-selector/blob/master/LICENSE)
[![Build Status](https://travis-ci.org/ehsunshine/colored-time-selector.svg?branch=master)](https://travis-ci.org/ehsunshine/colored-time-selector)

# Colored Time Range Selector
A smart colored time range selector. Users can select just free time with a handy colorful range selector.

## Screen Shots
Colored Time Range Bar Selector
Colored Time Range Bar Selector

## Features

- Select a `time range` between 2 hours
- Highlight `available time range` with your desire color
- Select `just free times` in a range
- Two different type of view, with `Selector` and without it

## Use it

**build.gradle**
```gradle
dependencies {
implementation 'de.ehsun.coloredtimebar:coloredtimebar:1.0'
}
```

In your layout use the ColoredTimeBar as below:

```xml

```
In your code you can easily set the available time by passing an array of time range string as below:

```kotlin
timelineView.setAvailableTimeRange(listOf("07:00 - 10:15", "12:00 - 15:00"))
```
And to enable picker handles use it as below:

```xml

```

```kotlin
timelinePicker.setOnSelectedTimeRangeChangedListener { from, to ->
selectedTimeTextView.text = getString(R.string.from_to, from.format(), to.format())
}
```

Colored Time Range Bar Selector

## Do you like it?
Use it and develop it as you like and buy me a cup of tea :)

Buy Me a Coffee at ko-fi.com