KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
Ticker
★ 13
Open GitHub ↗
A custom time picker library
Download README (.md)
Explore Similar Repositories
comparePythonInteractives
:
Comparing popular interactive plotting packages for Python
Binance-API-cpp
:
a Binance API cpp wrapper
meta-sens
:
No description available.
2022-ectf-insecure-example
:
Insecure reference example for the 2022 Collegiate eCTF
vscode
:
Vscode theme for paradise
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
Ticker
?
Download (.md)
# Ticker [](https://jitpack.io/#kshitijskumar/Ticker) A simple spinner time picker library <img src="https://github.com/kshitijskumar/Ticker/blob/main/Time%20Picker%20cover.jpg" height=500> ## Adding dependencies: if your gradle version is 7.0 or above : Add this to your settings.gradle (Project level): ```kotlin 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): ```kotlin allprojects { repositories { .... maven { url 'https://jitpack.io' } } } ``` Enable viewBinding in app/build.gradle: ``` buildFeatures { viewBinding true } ``` Add the dependencies in your app/build.gradle: ```kotlin 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"/> ``` <img src="https://github.com/kshitijskumar/Ticker/blob/main/ticker%20demo%20gif.gif" height=400> To get the currently selected time: ``` val timeSelected = binding.timePicker.getCurrentlySelectedTime() ``` To set initial time for the picker: ``` binding.timePicker.setInitialSelectedTime("10:40 Am") ```