Ticker - A custom time picker library

Overview

Ticker

A simple spinner time picker library

  

Adding dependencies:

if your gradle version is 7.0 or above : Add this to your settings.gradle (Project level):

dependencyResolutionManagement {
	repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
	repositories {
		....
		maven { url 'https://jitpack.io' }
	}
}

If your gradle version is below 7.0 : Add this to your build.gradle (Project level):

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

Enable viewBinding in app/build.gradle:

buildFeatures {
        viewBinding true
}

Add the dependencies in your app/build.gradle:

dependencies {
    ....
    implementation 'com.github.kshitijskumar:Ticker:1.0.0'
}

How to use the library

You can use the ticker component like:

<com.example.ticker.core.ui.Ticker
        android:id="@+id/time_picker"
        android:layout_width="300dp"
        android:layout_height="300dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:hoursFormat="hours24"
        app:shouldAmSelected="false"
        app:minutesInterval="1"/>

  

To get the currently selected time:

val timeSelected = binding.timePicker.getCurrentlySelectedTime()

To set initial time for the picker:

binding.timePicker.setInitialSelectedTime("10:40 Am")
You might also like...
Gradle plugin to manage tests which should only run nightly and not every time a CI/CD pipeline builds.

NightlyTestsPlugin Gradle Plugin to configure which (j)Unit tests should only be run nightly and not everytime a CI/CD pipeline is triggered. Usage To

Android application for tracking accumulative time of projects.

TimeTracker Track the time you've put into hobby projects, studying or work. Features: Data stored in local SQL database Built with Google MVVM archit

Clean MVVM with eliminating the usage of context from view models by introducing hilt for DI and sealed classes for displaying Errors in views using shared flows (one time event), and Stateflow for data

Clean ViewModel with Sealed Classes Following are the purposes of this repo Showing how you can remove the need of context in ViewModels. I. By using

App with plant list 🌱 , the app reminds you when to water 💦 your best plant at a certain time.
App with plant list 🌱 , the app reminds you when to water 💦 your best plant at a certain time.

Plant Life App with plant list 🌱 , the app reminds you when to water 💦 your best plant at a certain time.. Table of Contents Introduction Features U

TimeTrackerApp Android - Time Tracker App developed in kotlin
TimeTrackerApp Android - Time Tracker App developed in kotlin

Time Tracker App (Android) It is a simple android app developed in kotlin progra

 Online real-time android quiz game
Online real-time android quiz game

KQuiz Описание проекта Проект представляет собой мобильное приложение, выполнящее роль платформы для создания, поиска, организации и выполнения онлайн

Learn Kotlin, easy bites at a time
Learn Kotlin, easy bites at a time

Welcome! I hope you're having an amazing day! 🚀 This repository is a reference of how I think one should approach learning kotlin step-by-step. Insid

Task Manager feat. real-time competitive system and user engagement
Task Manager feat. real-time competitive system and user engagement

Dira Что из себя представляет Dira? Android-приложение Directa (сокр. Dira) - это планер, который способен улучшить жизнь пользователей. Он позволяет

An Android app that scans images or human faces in real time and detects whether the mask is worn or not, with the ability to set an audible alert
An Android app that scans images or human faces in real time and detects whether the mask is worn or not, with the ability to set an audible alert

Swift Mask Real time face mask detection Brief overview Swift Mask scans images or human faces in real time and detects whether the mask is worn or no

Releases(1.0.0)
Owner
Kshitij Kumar
Android dev and a B.Tech student from Maharaja Surajmal Institute of Technology, GGSIPU, New Delhi.
Kshitij Kumar
A simple time second selector seek bar custom made

A simple time second selector seek bar custom made How to To get a Git project into your build: Step 1. Add the JitPack repository to your build file

Mohammed Nadil 2 Nov 26, 2021
A Simple Android library to get the number of words and give you the time it will take you to finish an article/story.

MinRead A Simple Android library to get the number of words and give you the time it will take you to finish an article/story. Prerequisite Androidx K

Nwokocha wisdom maduabuchi 36 Nov 17, 2021
Android Project to find FatMax in real time with a Polar H10

FatMaxxer According to recent research (see below) the FatMaxxer Android app may help you to exercise at the optimum effort level for fat burning, mea

null 37 Dec 28, 2022
A webapp which generates a simple Discord profile banner image in real-time which shows user's status and activity.

DiscordProfileBanner This tool generates a Discord profile banner image in realtime. I wrote it for use in my AniList profile. An example in action: H

Quanta 11 Oct 17, 2022
Compile-time dependency injection for Kotlin Multiplatform

Kinzhal Kinzhal is a Kotlin Multiplatform library for compile-time dependency injection. The goal is to emulate basic features of Dagger to achieve si

Artem Daugel-Dauge 59 Dec 21, 2022
FirestoreCleanArchitectureApp is an app built with Kotlin and Firestore that displays data in real-time using the MVVM Architecture Pattern. For the UI it uses Jetpack Compose, Android's modern toolkit for building native UI.

FirestoreCleanArchitectureApp FirestoreCleanArchitectureApp is an app built with Kotlin and Cloud Firestore that displays data in real-time using Andr

Alex 66 Dec 15, 2022
This prototype app provides a list of events to be held under an organization (school, college, club, etc.) and the users can manually set event reminders at their scheduled time so that they do not miss an event.

E-CELL NITS Sample App This prototype app provides a list of events to be held under E-Cell NIT Silchar (for example, Srijan 2.0) and the users can ma

Ritam Nath 1 Nov 7, 2021
The app features real-time chatting between different users on daily topics

DailyDiscuss The app features real-time chatting between different users on daily topics. The app comes with 2 types of user interface: Admin who crea

null 1 Dec 20, 2021