{"action":"opened","issue":{"url":"https://api.github.com/repos/nex3z/ToggleButtonGroup/issues/40","repository_url":"https://api.github.com/repos/nex3z/ToggleButtonGroup","labels_url":"https://api.github.com/repos/nex3z/ToggleButtonGroup/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/nex3z/ToggleButtonGroup/issues/40/comments","events_url":"https://api.github.com/repos/nex3z/ToggleButtonGroup/issues/40/events","html_url":"https://github.com/nex3z/ToggleButtonGroup/issues/40","id":367441216,"node_id":"MDU6SXNzdWUzNjc0NDEyMTY=","number":40,"title":"Change LabelToggle background and border color for checked/unchecked state programmatically?","user":{"login":"usmaan-anwar","id":41753872,"node_id":"MDQ6VXNlcjQxNzUzODcy","avatar_url":"https://avatars1.githubusercontent.com/u/41753872?v=4","gravatar_id":"","url":"https://api.github.com/users/usmaan-anwar","html_url":"https://github.com/usmaan-anwar","followers_url":"https://api.github.com/users/usmaan-anwar/followers","following_url":"https://api.github.com/users/usmaan-anwar/following{/other_user}","gists_url":"https://api.github.com/users/usmaan-anwar/gists{/gist_id}","starred_url":"https://api.github.com/users/usmaan-anwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usmaan-anwar/subscriptions","organizations_url":"https://api.github.com/users/usmaan-anwar/orgs","repos_url":"https://api.github.com/users/usmaan-anwar/repos","events_url":"https://api.github.com/users/usmaan-anwar/events{/privacy}","received_events_url":"https://api.github.com/users/usmaan-anwar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-06T09:41:11Z","updated_at":"2018-10-06T09:41:11Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nThanks for developing such a great library. I am using your library in my project, I would like to know how I can simply just use my own background and border color and everything else the same.\r\nCurrently i am doing something like this:\r\n\r\n`private void initMultiSelectToggleGroup() {\r\n        MultiSelectToggleGroup interestsMultiSelectToggleGroup = findViewById(R.id.interests_multi_select_toggle_group);\r\n        String[] interests = {\"Photography\", \"Hiking\", \"Skiing\"};\r\n        for (String interest : interests) {\r\n            LabelToggle toggle = new LabelToggle(this);\r\n            toggle.setText(interest);\r\n            toggle.setMarkerColor(R.color.colorPrimaryLight);\r\n            interestsMultiSelectToggleGroup.addView(toggle);\r\n        }\r\n    }`\r\n\r\nBut with this I am getting a greyish border and background color instead of my defined `colorPrimaryLight`.\r\n\r\n**PS: You mentioned that we can use our custom buttons, but just for changing the background and border color, I don't think creating a whole new custom button is a good idea, plus I (beginner) am confused on how I can create a custom button (Complete Steps to create a custom button) . Please help me with this** \r\n\r\nThanks in advance."}}
{"actor":{"display_login":"usmaan-anwar"}}