You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. Implement `WeekView.MonthChangeListener`, `WeekView.EventClickListener`, `WeekView.EventLongPressListener` according to your need.
80
80
81
-
5. Provide the events for the `WeekView` in `WeekView.MonthChangeListener.onMonthChange()` callback. Please remember that the calendar preloads events of three consecutive months to enable lag-free scrolling.
81
+
5. Provide the events for the `WeekView` in `WeekView.MonthChangeListener.onMonthChange()` callback. Please remember that the calendar pre-loads events of three consecutive months to enable lag-free scrolling.
82
82
83
83
```java
84
84
WeekView.MonthChangeListener mMonthChangeListener = new WeekView.MonthChangeListener() {
@@ -118,6 +118,18 @@ You can customize the look of the `WeekView` in xml. Use the following attribute
118
118
- `todayBackgroundColor`
119
119
- `todayHeaderTextColor`
120
120
121
+
Interfaces
122
+
----------
123
+
124
+
Use the following interfaces according to your need.
125
+
126
+
- `mWeekView.setMonthChangeListener()` to provide events to the calendar
127
+
- `mWeekView.setOnEventClickListener()` to get a callback when an event is clicked
128
+
- `mWeekView.setEventLongPressListener()` to get a callback when an event is long pressed
129
+
- `mWeekView.setEmptyViewClickListener()` to get a callback when any empty space is clicked
130
+
- `mWeekView.setEmptyViewLongPressListener()` to get a callback when any empty space is long pressed
131
+
- `mWeekView.setDateTimeInterpreter()` to set your own labels for the calendar header row and header column
132
+
121
133
Sample
122
134
----------
123
135
@@ -132,6 +144,14 @@ To do
132
144
Changelog
133
145
---------
134
146
147
+
**Version 1.2.1**
148
+
149
+
* Better scrolling added
150
+
* Get callbacks when empty view is tapped/long pressed
151
+
* Control the speed of scrolling
152
+
* Support for multiple language added
153
+
* Ability to set your own interpreter for header row and column added
154
+
135
155
**Version 1.1.7**
136
156
137
157
* You can now dynamically scroll to an hour of your preference.
0 commit comments