We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76113b6 commit aadf90aCopy full SHA for aadf90a
README.md
@@ -30,6 +30,21 @@ Android 5.0+ API 21+
30
mCounter.setMaxTimeUnit(TimeUnits.DAY);
31
mCounter.setTextSize(30);
32
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
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
+ });
48
```
49
### XML
50
```XML
0 commit comments