Skip to content

Commit aadf90a

Browse files
authored
Update README.md
1 parent 76113b6 commit aadf90a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,21 @@ Android 5.0+ API 21+
3030
mCounter.setMaxTimeUnit(TimeUnits.DAY);
3131
mCounter.setTextSize(30);
3232
mCounter.setTypeFace(ResourcesCompat.getFont(this, R.font.batmfa__));
33+
34+
mCounter.setListener(new Counter.Listener() {
35+
@Override
36+
public void onTick(long millisUntilFinished) {
37+
Log.d(TAG, "onTick: Counter - " + millisUntilFinished);
38+
}
39+
40+
@Override
41+
public void onTick(long days, long hours, long minutes, long seconds) {
42+
Log.d(TAG, "onTick: Counter - " + days + "d " +
43+
hours + "h " +
44+
minutes + "m " +
45+
seconds + "s " );
46+
}
47+
});
3348
```
3449
### XML
3550
```XML

0 commit comments

Comments
 (0)