⏱️ TimerView is a beautifully designed fully customisable Android view that allows developers to create the UI for countdown timers.

Overview

TimerView


🔥 A beautifully designed fully customisable Android view that allows developers to create the UI for countdown timers.

License API API

Index

Getting started

In your project's build.gradle

repositories {
    maven { url "https://jitpack.io" }
}

In your modules's build.gradle

API
implementation "com.github.KunikaValecha:TimerView:$latest_version"

Basic usage

<com.github.credit_card_view.CreditCardView
        android:id="@+id/timerView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="7dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:timer_backgroundColor="@color/green_33009F6B"
        app:timer_backgroundOutlineColor="@color/green_99009F6B"
        app:timer_backgroundOutlineRadius="10dp"
        app:timer_backgroundOutlineWidth="4dp"
        app:timer_cellHeight="60dp"
        app:timer_cellWidth="40dp"
        app:timer_shouldShowHeaders="true"
        app:timer_textViewColor="#354741"
        app:timer_textViewSize="20sp" />

Customisation

Attribute Type Optional Definition
timer_backgroundColor color hex No color of each cell of timer view
timer_backgroundOutlineColor color hex No color of outline stroke of each cell of timer view
timer_backgroundOutlineRadius integer No radius of outline stroke of each cell of timer view
timer_backgroundOutlineWidth integer No width of outline stroke of each cell of timer view
timer_cellHeight integer No height of each cell of timer view
timer_cellWidth integer No width of each cell of timer view
timer_shouldShowHeaders boolean No whether to show headers viz. Hours, Minutes, Seconds below their respective countdown cells
timer_textViewColor color hex No color of text in each cell of timer view along with color of headers and seperators
timer_textViewSize integer No size of text in each cell of timer view along with size of headers and seperators

Functions available

fun startTimer(
        durationInMillis: Long,
        uiScope: CoroutineScope,
        onTimerFinished: () -> Unit,
        onTimerInterval: () -> Unit
    ) //Function to set countdown in milliseconds

fun pauseTimer(): String? //Function to pause timer

fun resumeTimer(): ExpiryDate? //Function to resume timer

fun updateTimerUIState(
        bgColor: Int,
        outlineColor: Int,
        strokeWidth: Int,
        cornerRadius: Int
    ) //Function to update states of timer

Find this library useful? ❤️

Support it by joining stargazers for this repository.

License

Copyright 2022 KunikeValecha

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.
You might also like...
Geoponics is an E-Commerce Android Based Application Designed for Farmers As Well As Normal Users to Buy and Sell Agricultural goods!
Geoponics is an E-Commerce Android Based Application Designed for Farmers As Well As Normal Users to Buy and Sell Agricultural goods!

Geoponics : E-Commerce Application Geoponics is an E-Commerce Android Based Aplication Designed for Farmers As Well As Normal Users to Buy and Sell Ag

This is a food donation android application designed to reduce food wastage by donating excess food to poor or needy people.  Based on Kotlin and currently under development
This is a food donation android application designed to reduce food wastage by donating excess food to poor or needy people. Based on Kotlin and currently under development

FOODONOR This is a food donation android application designed to reduce food wastage by donating excess food to poor or needy people. Based on Kotlin

💰 Expense Manager is simple, intuitive, stable and modern app that is just designed for you.
💰 Expense Manager is simple, intuitive, stable and modern app that is just designed for you.

Expense Manager is simple, intuitive, stable and modern app that is just designed for you. Everything you need at your fingertips to manage the expenditures and budgets.

Simple ToDo app designed for GDSC [Delhi Technical Campus]
Simple ToDo app designed for GDSC [Delhi Technical Campus]

Simple ToDo Simple ToDp app will help manage your daily tasks and don't forget about important things! ⏰ This app is developed by (Inzemamul Haq) me o

A minimalist but powerful productivity timer designed to keep you focused and free of distractions.
A minimalist but powerful productivity timer designed to keep you focused and free of distractions.

Goodtime A minimalist but powerful productivity timer designed to keep you focused and free of distractions. Alternate between focused work sessions a

PNPscript - ProdigyPNP's upcoming programming language, designed for hacking Prodigy.

PNPscript PNPscript - ProdigyPNP's upcoming programming language, designed for hacking Prodigy. THIS IS IN EARLY DEVELOPMENT. DON'T BOTHER TRYING TO A

Tesla App Clone built in Kotlin, using Compose. The project was initially designed by Clinton using Flutter.

Tesla Tesla App Clone built in Kotlin, using Compose. The project was initially designed by Clinton using Flutter. We are keeping this repo as a singl

Unity-Android-SDK-Plugins - Android SDK/Library/Plugins (aar) for Unity Developers

Unity Android SDK Plugins Unity Android SDK Plugins is an Open Source project th

An library to help android developers working easly with activities and fragments (Kotlin version)
An library to help android developers working easly with activities and fragments (Kotlin version)

AFM An library to help android developer working easly with activities and fragments (Kotlin) Motivation Accelerate the process and abstract the logic

Releases(2.2)
  • 2.2(Oct 26, 2022)

  • 2.1(Oct 25, 2022)

  • 1.5(Oct 16, 2022)

    Custom timer view for android to display the countdown in Hours:Minutes:Seconds. All you need to do is input the remaining time which should be Long Type in startTimer function along with uiScope. You can define the interval (in milliseconds, Type Long) on which the timer view changes inside onInterval lambda function. You can also define your functionalities when countdown stops inside onFinished lambda function.

    Source code(tar.gz)
    Source code(zip)
Owner
Kunika Valecha
Android Developer
Kunika Valecha
Bodhi Timer is an elegant, minimalist countdown timer

Install About Want to help with translating the app? It's easy Bodhi Timer is an elegant, minimalist countdown timer. It is designed mainly for use as

Yuttadhammo Bhikkhu 41 Dec 7, 2022
Android app built with MVP architectural approach and uses Marvel Comics API that allows developers everywhere to access information about Marvel's vast library of comics. :zap:

Villains & Heroes Android app built with MVP architectural approach and uses Marvel Comics API that allows developers everywhere to access information

André Mion 53 Jul 13, 2022
Application that allows to search some products and display them in a list, also allows to add some product to the shopping cart and remove it

Application that allows to search some products and display them in a list, also allows to add some product to the shopping cart and remove it

Victor 3 Aug 18, 2022
Progressive Web App that allows you to create workout tables

WORKOUT Progressive Web App that allows you to create workout tables. ...work in

Piero 0 Jan 10, 2022
A Free, Fully Fledged, Open-Source Music Player for Android

Turtle Player Free, Fully Fledged & Open-Source. The Music Player for Android. Turtle Player is designed to be a fun and unique app for playing your m

Edd Turtle 178 Nov 18, 2022
Open source Crypto Currency Tracker Android App made fully in Kotlin

CoinBit CoinBit is a beautiful CryptoCurrency app, completely open sourced and 100% in kotlin. It supports following features Track prices of over 300

Pranay Airan 50 Dec 5, 2022
A fully functional social media app built with Kotlin (Android Studio) with multiple features

A social media app built with Kotlin (Android Studio) with multiple features ?? If you like this repo, give it a star ✨ and share ????‍?? it to your f

ThanhPhong 9 Dec 13, 2022
MEGA Android Client - A fully-featured client to access your Cloud Storage provided by MEGA

A fully-featured client to access your Cloud Storage provided by MEGA. This document will guide you to build the application on a Linux machine with Android Studio.

Mega Limited 1.1k Jan 3, 2023
🚧 A fully open-source project for creating and maintaining a Kotlin-based Minecraft: Java Edition server.

Hexalite: Java Edition ⚠️ WARNING: The Hexalite Network is a work in progress. It is not yet ready for production. You may encounter bugs and other is

Hexalite Studios 38 Nov 28, 2022
🚧 A fully open-source project for creating and maintaining a Kotlin-based Minecraft: Java Edition server.

Hexalite: Java Edition ⚠️ WARNING: The Hexalite Network is a work in progress. It is not yet ready for production. You may encounter bugs and other is

Hexalite Network 38 Nov 28, 2022