Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdao committed Feb 16, 2016
1 parent 03edff5 commit ea378c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public void setTextColorForDate(int textColorRes, Date date);
public void setTextColorForDateTime(int textColorRes, DateTime dateTime);
```

To use these methods, you should define your colors in ```color.xml``` and background in ```drawable``` folder:
To use these methods, you can define your colors in ```color.xml``` and background in ```drawable``` folder:

``` java
ColorDrawable blue = new ColorDrawable(getResources().getColor(R.color.blue));
Expand All @@ -194,7 +194,8 @@ caldroidFragment.setBackgroundDrawableForDate(blue, blueDate);
caldroidFragment.setBackgroundDrawableForDate(green, greenDate);

caldroidFragment.setTextColorForDate(R.color.white, blueDate);
caldroidFragment.setTextColorForDate(R.color.white, greenDate);```
caldroidFragment.setTextColorForDate(R.color.white, greenDate);
```

You need to call ```refreshView()``` after above methods to update calendar appearance.

Expand Down

0 comments on commit ea378c9

Please sign in to comment.