{"action":"closed","issue":{"url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/213","labels_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/213/comments","events_url":"https://api.github.com/repos/alamkanak/Android-Week-View/issues/213/events","html_url":"https://github.com/alamkanak/Android-Week-View/issues/213","id":119130682,"number":213,"title":"background color is not getting set.","user":{"login":"Prasanth-Perumal","id":12027107,"avatar_url":"https://avatars.githubusercontent.com/u/12027107?v=3","gravatar_id":"","url":"https://api.github.com/users/Prasanth-Perumal","html_url":"https://github.com/Prasanth-Perumal","followers_url":"https://api.github.com/users/Prasanth-Perumal/followers","following_url":"https://api.github.com/users/Prasanth-Perumal/following{/other_user}","gists_url":"https://api.github.com/users/Prasanth-Perumal/gists{/gist_id}","starred_url":"https://api.github.com/users/Prasanth-Perumal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prasanth-Perumal/subscriptions","organizations_url":"https://api.github.com/users/Prasanth-Perumal/orgs","repos_url":"https://api.github.com/users/Prasanth-Perumal/repos","events_url":"https://api.github.com/users/Prasanth-Perumal/events{/privacy}","received_events_url":"https://api.github.com/users/Prasanth-Perumal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-27T04:39:53Z","updated_at":"2015-12-13T20:35:53Z","closed_at":"2015-12-13T20:35:53Z","body":"```\r\nWeekView.EmptyViewClickListener emptyViewClickListener = new WeekView.EmptyViewClickListener() {\r\n            @Override\r\n            public void onEmptyViewClicked(final Calendar time) {\r\n                AlertDialog.Builder alert = new AlertDialog.Builder(MainActivity.this);\r\n\r\n                alert.setTitle(\"create event\");\r\n\r\n                final EditText input = new EditText(MainActivity.this);\r\n                input.setHint(\"name\");\r\n//                final EditText input2 = new EditText(MainActivity.this);\r\n//                input2.setInputType(InputType.TYPE_CLASS_NUMBER);\r\n//                input2.setHint(\"duration\");\r\n                LinearLayout layout = new LinearLayout(MainActivity.this);\r\n                layout.setOrientation(LinearLayout.VERTICAL);\r\n                layout.addView(input);\r\n//                layout.addView(input2);\r\n                alert.setView(layout);\r\n\r\n                alert.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\r\n                    public void onClick(DialogInterface dialog, int whichButton) {\r\n                       String inputstring =  input.getText().toString();\r\n                        time.set(time.get(Calendar.YEAR), time.get(Calendar.MONTH), time.get(Calendar.DATE), time.get(Calendar.HOUR), 0);\r\n                        Calendar date = time;\r\n                        date.add(Calendar.MINUTE, 15);\r\n//                        WeekViewEvent event  = new WeekViewEvent(new Random().nextLong(),inputstring,time,date);\r\n                        WeekViewEvent event = new WeekViewEvent();\r\n                        event.setColor(Color.BLUE);\r\n                        event.setEndTime(date);\r\n                        event.setStartTime(time);\r\n                        event.setName(inputstring);\r\n                        event.setId(new Random().nextLong());\r\n                        events.add(event);\r\n//                        Intent intent = new Intent(MainActivity.this,MainActivity.class);\r\n//                        MainActivity.this.finish();\r\n//                        startActivity(intent);\r\n                        mWeekView.notifyDatasetChanged();\r\n\r\n\r\n                                           }\r\n                });\r\n\r\n                alert.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\r\n                    public void onClick(DialogInterface dialog, int whichButton) {\r\n                        // Canceled.\r\n                    }\r\n                });\r\n\r\n                alert.show();\r\n```\r\nthe new event is getting created but the background color of the event is not getting set."}}