Skip to content

Commit 720efb2

Browse files
authored
Update README.md
1 parent 4fc7b8e commit 720efb2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,31 @@ dbHelper.executeSelectQuery(tableName, values, hasConditions, conditionalValues)
268268
dbHelper.getRecordCount(tableName, values, hasConditions, conditionalValues);
269269
```
270270

271+
### DatePickerFragment
272+
273+
>**Use this date picker fragment for selecting date.**
274+
275+
```java
276+
277+
DatePickerFragment datePickerFragment = new DatePickerFragment();
278+
279+
/**
280+
* 2018 October 24 - Wednesday - 03:34 PM
281+
* show date picker dialog method
282+
*
283+
* this method will show the date picker dialog fragment
284+
*
285+
* @param context - context of the application
286+
* @param selectedDate - interface of date picker fragment for getting the selected date value
287+
* @param selectedDateFormat - format in which you want the date.
288+
* Example: yyyy-MM-dd hh:mm:ss
289+
*
290+
* @param isCurrentDateMin - pass true to set current date as minimum date else pass false.
291+
**/
292+
datePickerFragment.showDatePickerDialog(this, this, "yyyy/MM/dd HH:mm:ss", false);
293+
294+
```
295+
271296
### SquareImageView
272297

273298
>**Use it the way you use ImageView in android. This makes your image in a perfect square shape.**

0 commit comments

Comments
 (0)