Skip to content

Commit 6ee5fed

Browse files
authored
Update README.md
1 parent 30609bc commit 6ee5fed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ Android 5.0+ API 21+
1717
// Java
1818
```
1919
mCounter = findViewById(R.id.counter);
20+
Date date = format.parse("2019-07-22T18:33:00");
21+
mCounter.setDate(date);//countdown starts
22+
//or use:
2023
mCounter.setDate("2019-07-19T18:33:00"); //countdown starts
24+
2125
/*
2226
* Additional attributes:
2327
* */
@@ -33,6 +37,7 @@ Android 5.0+ API 21+
3337
android:id="@+id/counter"
3438
android:layout_width="wrap_content"
3539
android:layout_height="wrap_content"
40+
3641
<!--Additional attributes-->
3742
app:max_time_unit="HOUR"
3843
app:text_color="@color/colorPrimary"
@@ -43,6 +48,7 @@ Android 5.0+ API 21+
4348
android:id="@+id/counte1"
4449
android:layout_width="wrap_content"
4550
android:layout_height="wrap_content"
51+
4652
<!--Additional attributes-->
4753
app:max_time_unit="DAY"
4854
app:text_color="#2196F3"

0 commit comments

Comments
 (0)