File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,11 @@ Android 5.0+ API 21+
17
17
// Java
18
18
```
19
19
mCounter = findViewById(R.id.counter);
20
+ Date date = format.parse("2019-07-22T18:33:00");
21
+ mCounter.setDate(date);//countdown starts
22
+ //or use:
20
23
mCounter.setDate("2019-07-19T18:33:00"); //countdown starts
24
+
21
25
/*
22
26
* Additional attributes:
23
27
* */
@@ -33,6 +37,7 @@ Android 5.0+ API 21+
33
37
android:id="@+id/counter"
34
38
android:layout_width="wrap_content"
35
39
android:layout_height="wrap_content"
40
+
36
41
<!--Additional attributes-->
37
42
app:max_time_unit="HOUR"
38
43
app:text_color="@color/colorPrimary"
@@ -43,6 +48,7 @@ Android 5.0+ API 21+
43
48
android:id="@+id/counte1"
44
49
android:layout_width="wrap_content"
45
50
android:layout_height="wrap_content"
51
+
46
52
<!--Additional attributes-->
47
53
app:max_time_unit="DAY"
48
54
app:text_color="#2196F3"
You can’t perform that action at this time.
0 commit comments