Skip to content

Commit e1eb2de

Browse files
committed
Update README.md
2 parents 5da5e8c + 00e5405 commit e1eb2de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ For a basic implementation, you'll need to
3535

3636
### Implement an `OnTimeSetListener`/`OnDateSetListener`
3737
In order to receive the date or time set in the picker, you will need to implement the `OnTimeSetListener` or
38-
`OnDateSetListener` interfaces. Typically this will be the `Activity` or `Fragment` that creates the Pickers.
38+
`OnDateSetListener` interfaces. Typically this will be the `Activity` or `Fragment` that creates the Pickers. The callbacks use the same API as the standard Android pickers.
3939
```java
4040
@Override
4141
public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) {
@@ -45,7 +45,7 @@ public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) {
4545

4646
@Override
4747
public void onDateSet(DatePickerDialog view, int year, int monthOfYear, int dayOfMonth) {
48-
String date = "You picked the following date: "+dayOfMonth+"/"+monthOfYear+"/"+year;
48+
String date = "You picked the following date: "+dayOfMonth+"/"+(monthOfYear+1)+"/"+year;
4949
dateTextView.setText(date);
5050
}
5151
```
@@ -77,7 +77,7 @@ The `TimePickerDialog` has a dark theme that can be set by calling
7777
```java
7878
tdp.setThemeDark(true);
7979
```
80-
It doesn't strictly follow the Material Design spec, but gets the job done for the time being.
80+
It doesn't strictly follow the Material Design spec, but gets the job done for the time being
8181

8282
Potential Improvements
8383
----------------------

0 commit comments

Comments
 (0)