Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Latest commit

 

History

History
42 lines (32 loc) · 886 Bytes

README.md

File metadata and controls

42 lines (32 loc) · 886 Bytes

⚠️ This project is no longer maintained.


CountDownView

A simple view that does a temporal count down with fields - Hours, Minutes and Seconds.

Installation

Pull in CountDownView from Jitpack.

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

dependencies {
  implementation 'com.github.alexfu:CountDownView:0.1.0'
}

Usage

Include in your layout.

<com.alexfu.countdownview.CountDownView
    android:id="@+id/count_down"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textAppearance="@style/TextAppearance.AppCompat.Display1"
    app:startDuration="60000"/>

Then, in your Activity/Fragment, obtain the view and call start().

CountDownView countDownView = findViewById(R.id.count_down);
countDownView.start();