{"action":"created","issue":{"url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/150","labels_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/150/comments","events_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/150/events","html_url":"https://github.com/alamkanak/Android-Week-View/issues/150","id":92261918,"number":150,"title":"Display event over three day continuously","user":{"login":"Vanco","id":11991700,"avatar_url":"https://avatars.githubusercontent.com/u/11991700?v=3","gravatar_id":"","url":"https://api.github.com/users/Vanco","html_url":"https://github.com/Vanco","followers_url":"https://api.github.com/users/Vanco/followers","following_url":"https://api.github.com/users/Vanco/following{/other_user}","gists_url":"https://api.github.com/users/Vanco/gists{/gist_id}","starred_url":"https://api.github.com/users/Vanco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vanco/subscriptions","organizations_url":"https://api.github.com/users/Vanco/orgs","repos_url":"https://api.github.com/users/Vanco/repos","events_url":"https://api.github.com/users/Vanco/events{/privacy}","received_events_url":"https://api.github.com/users/Vanco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-01T03:49:02Z","updated_at":"2015-07-02T14:14:59Z","closed_at":null,"body":"If event over three days, the weekview only display in start day and end day, but omit the over days."},"comment":{"url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/comments/118047114","html_url":"https://github.com/alamkanak/Android-Week-View/issues/150#issuecomment-118047114","issue_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/150","id":118047114,"user":{"login":"Vanco","id":11991700,"avatar_url":"https://avatars.githubusercontent.com/u/11991700?v=3","gravatar_id":"","url":"https://api.github.com/users/Vanco","html_url":"https://github.com/Vanco","followers_url":"https://api.github.com/users/Vanco/followers","following_url":"https://api.github.com/users/Vanco/following{/other_user}","gists_url":"https://api.github.com/users/Vanco/gists{/gist_id}","starred_url":"https://api.github.com/users/Vanco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vanco/subscriptions","organizations_url":"https://api.github.com/users/Vanco/orgs","repos_url":"https://api.github.com/users/Vanco/repos","events_url":"https://api.github.com/users/Vanco/events{/privacy}","received_events_url":"https://api.github.com/users/Vanco/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T14:14:59Z","updated_at":"2015-07-02T14:14:59Z","body":"We have encounter two problems when we use the WeekView.  \r\n1. When async retrieve data from remote server in the `onMonthChange`, there no data get displayed.\r\n2. it we have a three day appointment, only the start and end day get displayed.\r\n\r\nI have fixed the 2. \r\n\r\nFor the 1, there is no direct way to support the async call in the `onMonthChange`. I have to call the `notifyDatasetChanged` when the async callback to trigger the data refresh. but this will trigger the `onMonthChange` call again.  Two avoid call remote server in the second time, I make a cache to store the data in my Activity, and just feed the data when the second time call `onMonthChange`.   But the WeekView will fetch 3 month data when it first time create. this will call 9 times `onMonthChange`, and put duplicate event in `List<EventRect>`, and the display mass.  To avoid the duplicate, I make unicity check, and add the `equels` and `haschCode` method. this will help me to check unicity, and make a `Set<WeekViewEvent>` cache in the Activity, this two method is very helpful to Identify WeekViewEvent.\r\n\r\n "}}