{"action":"created","issue":{"url":"https://api.github.com/repos/Tibolte/AgendaCalendarView/issues/144","repository_url":"https://api.github.com/repos/Tibolte/AgendaCalendarView","labels_url":"https://api.github.com/repos/Tibolte/AgendaCalendarView/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/Tibolte/AgendaCalendarView/issues/144/comments","events_url":"https://api.github.com/repos/Tibolte/AgendaCalendarView/issues/144/events","html_url":"https://github.com/Tibolte/AgendaCalendarView/issues/144","id":324681968,"number":144,"title":"How do I import? Please HELP!","user":{"login":"utsahk","id":39429482,"avatar_url":"https://avatars0.githubusercontent.com/u/39429482?v=4","gravatar_id":"","url":"https://api.github.com/users/utsahk","html_url":"https://github.com/utsahk","followers_url":"https://api.github.com/users/utsahk/followers","following_url":"https://api.github.com/users/utsahk/following{/other_user}","gists_url":"https://api.github.com/users/utsahk/gists{/gist_id}","starred_url":"https://api.github.com/users/utsahk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utsahk/subscriptions","organizations_url":"https://api.github.com/users/utsahk/orgs","repos_url":"https://api.github.com/users/utsahk/repos","events_url":"https://api.github.com/users/utsahk/events{/privacy}","received_events_url":"https://api.github.com/users/utsahk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-20T04:11:29Z","updated_at":"2018-05-20T05:45:38Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nIm new to coding, and I wanted to import this into my project and use that as my base. But when I do all the stuff on the main page nothing works. Here is my code if it matters.\r\n\r\n`import android.support.v4.content.ContextCompat;\r\nimport android.support.v7.app.AppCompatActivity;\r\nimport android.os.Bundle;\r\n\r\nimport com.rilixtech.agendacalendarview.AgendaCalendarView;\r\nimport com.rilixtech.agendacalendarview.agenda.AgendaAdapter;\r\nimport com.rilixtech.agendacalendarview.agenda.AgendaView;\r\nimport com.rilixtech.agendacalendarview.calendar.CalendarView;\r\nimport com.rilixtech.agendacalendarview.models.BaseCalendarEvent;\r\nimport com.rilixtech.agendacalendarview.models.CalendarEvent;\r\nimport com.rilixtech.agendacalendarview.models.DayItem;\r\nimport com.rilixtech.agendacalendarview.models.IDayItem;\r\nimport com.rilixtech.agendacalendarview.models.IWeekItem;\r\nimport com.rilixtech.agendacalendarview.models.WeekItem;\r\nimport com.rilixtech.agendacalendarview.render.DefaultEventRenderer;\r\nimport com.rilixtech.agendacalendarview.render.EventRenderer;\r\nimport com.rilixtech.agendacalendarview.event.DayClickedEvent;\r\nimport com.rilixtech.agendacalendarview.event.FetchedEvent;\r\nimport com.rilixtech.agendacalendarview.utils.ListViewScrollTracker;\r\nimport com.rilixtech.agendacalendarview.widgets.FloatingActionButton;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.Calendar;\r\nimport java.util.List;\r\nimport java.util.Locale;\r\n\r\npublic class MainActivity extends AppCompatActivity {\r\n\r\nAgendaCalendarView mAgendaCalendarView;\r\n@Override\r\nprotected void onCreate(Bundle savedInstanceState) {\r\n    super.onCreate(savedInstanceState);\r\n    setContentView(R.layout.activity_main);\r\n\r\n    // minimum and maximum date of our calendar\r\n    // 2 month behind, one year ahead, example: March 2015 <-> May 2015 <-> May 2016\r\n    Calendar minDate = Calendar.getInstance();\r\n    Calendar maxDate = Calendar.getInstance();\r\n\r\n    minDate.add(Calendar.MONTH, -2);\r\n    minDate.set(Calendar.DAY_OF_MONTH, 1);\r\n    maxDate.add(Calendar.YEAR, 1);\r\n\r\n    List<CalendarEvent> eventList = new ArrayList<>();\r\n    mockList(eventList);\r\n\r\n    mAgendaCalendarView.init(eventList, minDate, maxDate, Locale.getDefault(), this);\r\n}\r\nprivate void mockList(List<CalendarEvent> eventList) {\r\n    Calendar startTime1 = Calendar.getInstance();\r\n    Calendar endTime1 = Calendar.getInstance();\r\n    endTime1.add(Calendar.MONTH, 1);\r\n    BaseCalendarEvent event1 = new BaseCalendarEvent(\"Thibault travels in Iceland\", \"A wonderful journey!\", \"Iceland\",\r\n            ContextCompat.getColor(this, R.color.colorAccent), startTime1, endTime1, true);\r\n    eventList.add(event1);\r\n\r\n    Calendar startTime2 = Calendar.getInstance();\r\n    startTime2.add(Calendar.DAY_OF_YEAR, 1);\r\n    Calendar endTime2 = Calendar.getInstance();\r\n    endTime2.add(Calendar.DAY_OF_YEAR, 3);\r\n    BaseCalendarEvent event2 = new BaseCalendarEvent(\"Visit to Dalvík\", \"A beautiful small town\", \"Dalvík\",\r\n            ContextCompat.getColor(this, R.color.colorAccent), startTime2, endTime2, true);\r\n    eventList.add(event2);\r\n\r\n\r\n}\r\n}\r\n'"},"comment":{"url":"https://api.github.com/repos/Tibolte/AgendaCalendarView/issues/comments/390459555","html_url":"https://github.com/Tibolte/AgendaCalendarView/issues/144#issuecomment-390459555","issue_url":"https://api.github.com/repos/Tibolte/AgendaCalendarView/issues/144","id":390459555,"user":{"login":"farhanmunir50","id":3954016,"avatar_url":"https://avatars0.githubusercontent.com/u/3954016?v=4","gravatar_id":"","url":"https://api.github.com/users/farhanmunir50","html_url":"https://github.com/farhanmunir50","followers_url":"https://api.github.com/users/farhanmunir50/followers","following_url":"https://api.github.com/users/farhanmunir50/following{/other_user}","gists_url":"https://api.github.com/users/farhanmunir50/gists{/gist_id}","starred_url":"https://api.github.com/users/farhanmunir50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farhanmunir50/subscriptions","organizations_url":"https://api.github.com/users/farhanmunir50/orgs","repos_url":"https://api.github.com/users/farhanmunir50/repos","events_url":"https://api.github.com/users/farhanmunir50/events{/privacy}","received_events_url":"https://api.github.com/users/farhanmunir50/received_events","type":"User","site_admin":false},"created_at":"2018-05-20T05:45:38Z","updated_at":"2018-05-20T05:45:38Z","author_association":"NONE","body":"You should call enableCalenderView after init.\r\nmAgendaCalendarView.enableCalenderView(true);"}}
{"actor":{"display_login":"farhanmunir50"}}