Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

kitek/TimerTextView

Repository files navigation

TimerTextView

Simple self updated timer TextView

Download

How to install

repositories {
 jcenter()
}
dependencies {
 compile 'pl.kitek:timertextview:0.0.2'
}

How to use

your_layout.xml

<pl.kitek.timertextview.TimerTextView
 android:id="@+id/timerText"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"
 android:layout_centerInParent="true"
 android:drawableLeft="@drawable/ic_timer"
 android:drawablePadding="4dp"
 android:gravity="center"
 android:textSize="24sp"/>

YourActivity.java

long futureTimestamp = System.currentTimeMillis() + (10 * 60 * 60 * 1000);
TimerTextView timerText = (TimerTextView) findViewById(R.id.timerText);
timerText.setEndTime(futureTimestamp);

Example

About

Simple self updated timer TextView

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /