I was did struggle first but its how i did it.
1) Download the zip file and unzip it
2) import it into the eclipse
3) Add the support library into my project (right click on the project go to Properties->Android->Library->Add) and select the support project
4) As i have android support libraries already added in my project i deleted them in one of the project else it gives error.
5) Now everything is set here is how i use.
XML :
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<cz.vhrdina.textclockbackport.TextClock
android:id="@+id/digitalClock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:text="@string/dclock_label"
android:textAppearance="?android:attr/textAppearanceLarge" />
.....
is the Java Code:
import cz.vhrdina.textclockbackport.TextClock;
.....
TextClock digitalClock=(TextClock) findViewById(R.id.digitalClock);