A counter down timer for android which supports both dark and light mode and Persian text and digit.

Overview

FlipTimerView

A counter down timer for android which supports both dark and light mode and Persian text and digit.

English Perisan

Getting started

Step1. Add it in your root build.gradle at the end of repositories:

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

Step 2. Add the dependency

dependencies {
	     implementation 'com.github.ArezooNazer:FlipTimerView:v1.0.0'
}

Usage

Add it to your layout:

 <com.arezoo.fliptimerview.FlipTimerView
        android:id="@+id/flipTimerView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        app:digitBottomDrawable="@drawable/shape_timer_bottom"
        app:digitTextColor="@color/text_color"
        app:digitTextSize="@dimen/title_font_size"
        app:digitTopDrawable="@drawable/shape_timer_top"
        app:digitWidth="40dp"
        app:halfDigitHeight="24dp"/>

Then start the timer and implement callbacks:

    private fun initFlipTimer() {
        binding.flipTimerView.apply {
            startCountDown(REMAINING_TIME_MILLI,
                object : com.arezoo.fliptimerview.CounterDownCallback {
                    override fun countdownAboutToFinish() {
                        super.countdownAboutToFinish()
                        // optionl
                    }

                    override fun countdownFinished() {
                        Toast.makeText(
                            this@MainActivity,
                            "time is finished",
                            LENGTH_LONG
                        ).show()
                    }
                })
        }
    }

Inspired by: https://github.com/anugotta/FlipTimerView

You might also like...
An application with the use of Kotlin can change the color of the text, and the background with the press of a button and switch.
An application with the use of Kotlin can change the color of the text, and the background with the press of a button and switch.

An application with the use of Kotlin can change the color of the text, and the background with the press of a button and switch.

KotlinScript that generate Reel from a given image, text and audio

ReelScriot KotlinScript that generate Reel from a given image, text and audio 80f4ea39-a7da-4f21-b0ff-7a17836a1cd0.mp4 6691b51d-d7a3-4915-ae41-8bec400

Notion Text Snippets  Notion + iOS快捷指令实现的随时随地文本收集功能
Notion Text Snippets Notion + iOS快捷指令实现的随时随地文本收集功能

Notion Text Snippets Notion + iOS快捷指令实现的随时随地文本收集功能 Notion 配置 第一步:创建 integration 打开 my integrations ,创建一个integration,并记录token。 第二步:创建 Database 打开 Notio

Lucilla - Fast, efficient, in-memory Full Text Search for Kotlin

Lucilla Lucilla is an in-memory Full Text Search library for Kotlin. It allows t

Text-array-process - A home assignment used during the recruitment process at Lumera

Rules to implement class={isogram|palindrome|semordnilap} maxlength=INT minl

A learning project which focuses on designing an OTP flow and use of various components of Android efficiently
A learning project which focuses on designing an OTP flow and use of various components of Android efficiently

Otp Demo A learning project which focuses on designing an OTP flow using Firebase. Article: https://saurabhpant.medium.com/otp-login-using-firebase-hi

Kotrlin Programming Language Cross-Platform Development which includes Android, iOS and Backend. Pretty much everwhere.
Kotrlin Programming Language Cross-Platform Development which includes Android, iOS and Backend. Pretty much everwhere.

Kotlin-Everywhere: Kotlin Programming Language Cross-Platform Development This is still a WIP but the idea is to create a tiny KOTLIN project that cou

Modular Android architecture which showcase Kotlin, MVVM, Navigation, Hilt, Coroutines, Jetpack compose, Retrofit, Unit test and Kotlin Gradle DSL.

SampleCompose Modular Android architecture which showcase Kotlin, MVVM, Navigation, Hilt, Coroutines, Jetpack compose, Retrofit, Unit test and Kotlin

WeatherApp2 - An android weather app which fetches weather of particular city from OpenWeatherMap api
WeatherApp2 - An android weather app which fetches weather of particular city from OpenWeatherMap api

WeatherApp2 An android weather app which fetches weather of particular city from

Releases(v1.0.0)
Owner
Arezoo Nazer
Android developer
Arezoo Nazer
These files are included in an Android Studio Project for a Magic the Gathering Life Counter app. The app was written in Kotlin.

Magic-Life-Counter These files were created in Android Studio using Kotlin. Usage This app was made to keep track of life totals while playing the tra

null 0 Dec 24, 2021
An IoT based automatic alerting device that consists of laser and a precise Light Dependent Resistor to detect the laser which is employed to constantly monitor the fluid level

An IoT based automatic alerting device that consists of laser and a precise Light Dependent Resistor to detect the laser which is employed to constantly monitor the fluid level. When the fluid level is below the critical level which will be defined by laser, it will alert the patient through buzzer, nurses and doctors through mobile app and the …

null 0 Feb 12, 2022
Android library to help enter, and more importantly, leave, android "Immersive Mode".

Immersive Lock Android has various ways to full screen an application including locking the screen to prevent accidentally leaving the app. This is pa

Baby Apps 2 May 20, 2022
Maintenance mode library for spring boot web and security projects.

spring-boot-starter-maintenance spring-boot-starter-maintenance is a maintenance mode library for spring boot web and security projects. Download Grad

Viascom 3 Nov 3, 2022
🔥The Android Startup library provides a straightforward, performant way to initialize components at the application startup. Both library developers and app developers can use Android Startup to streamline startup sequences and explicitly set the order of initialization.

??The Android Startup library provides a straightforward, performant way to initialize components at the application startup. Both library developers and app developers can use Android Startup to streamline startup sequences and explicitly set the order of initialization.

Rouse 1.3k Dec 30, 2022
Training a dense neural network using both KotlinDL and Python3 on the mnist dataset.

KotlinDL-mnist KotlinDL: Deep Learning Framework written in Kotlin This project trains a dense neural network using both KotlinDL and Python3 on the m

Wu Han 2 Apr 7, 2022
MaxonBank is a Kotlin + Spring Boot + Axon Framework application that supports opening, depositing to, and withdrawing from accounts.

MaxonBank MaxonBank is a Kotlin + Spring Boot + Axon Framework application that supports opening, depositing to, and withdrawing from accounts. The ap

Max 1 Dec 30, 2021
A very simple Android app which shows you random memes with the help of meme-api which you can share with your friends!

Meme Share A very simple Android app which shows you random memes with the help of meme-api which you can share with your friends! Tech stack 100% wri

Stɑrry Shivɑm 8 Aug 10, 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