Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
jjobes committed Feb 3, 2015
1 parent 1951936 commit 294a3ab
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ Then pass the listener into the builder and show the dialog:

``` java
new SlideDateTimePicker.Builder(getSupportFragmentManager())
.listener(listener)
.initialDate(new Date())
.setListener(listener)
.setInitialDate(new Date())
.build()
.show();
```
Expand All @@ -64,39 +64,39 @@ Note that the `Date` object that you pass in to `.initialDate()` should contain
**To set the minimum date to display:**

``` java
.minDate(date)
.setMinDate(date)
```

**To set the maximum date to display:**
``` java
.maxDate(date)
.setMaxDate(date)
```

The default time format is the current device's default, but you can force a 24-hour or 12-hour time format:

**To force 24-hour time:**

``` java
.is24HourTime(true)
.setIs24HourTime(true)
```

**To force 12-hour time:**
``` java
.is24HourTime(false)
.setIs24HourTime(false)
```

**The default theme is Holo Light, but you can specify either Holo Light or Dark explicitly:**
``` java
.theme(SlideDateTimePicker.HOLO_LIGHT)
.setTheme(SlideDateTimePicker.HOLO_LIGHT)
```
or
``` java
.theme(SlideDateTimePicker.HOLO_DARK)
.setTheme(SlideDateTimePicker.HOLO_DARK)
```

**To specify the color for the sliding tab underline (indicator):**
``` java
.indicatorColor(Color.parseColor("#FF0000"))
.setIndicatorColor(Color.parseColor("#FF0000"))
```

**To specify the color of the horizontal divider lines in the DatePicker and TimePicker:**
Expand All @@ -108,6 +108,12 @@ Contributions are welcome! Please open up an issue in GitHub or submit a PR.

Changelog
=========

### v1.0.1

* Builder methods now correspond to outer class methods
* Improved javadoc comments

### v1.0.0

* First release
Expand Down

0 comments on commit 294a3ab

Please sign in to comment.