/ TextView

A Flip Clock Libray

A Flip Clock Libray

Tab Digit

A Flip Clock Libray.Have a look at the demo app available on google play

Live Demo

https://play.google.com/store/apps/details?id=com.xenione.libs.digit

xenione-tab-digitc

xenione-tab-digit

Add it on your project:

Gradle:

compile 'com.xenione.libs:tab-digit:1.0.2'

Add tabdigit in your layout, you can set attributes like background or text color, text size and padding through xml as shown.

 <com.xenione.digit.TabDigit
     xmlns:digit="http://schemas.android.com/apk/res-auto"
        android:id="@+id/tabDigit1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_weight="1"
        digit:backgroundColor="#000000"
        digit:padding="10dp"
        digit:textColor="#ffffff"
        digit:textSize="60dp" />

start animation calling start().

tabDigit1.start();

Increase digit every second:

ViewCompat.postOnAnimationDelayed(tabDigit1, this, 1000);

@Override
    public void run() {
        tabDigit1.start();
        ViewCompat.postOnAnimationDelayed(tabDigit1, this, 1000);
    }

GitHub