{"action":"created","issue":{"url":"https://api.github.com/repos/material-components/material-components-android/issues/179","repository_url":"https://api.github.com/repos/material-components/material-components-android","labels_url":"https://api.github.com/repos/material-components/material-components-android/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/material-components/material-components-android/issues/179/comments","events_url":"https://api.github.com/repos/material-components/material-components-android/issues/179/events","html_url":"https://github.com/material-components/material-components-android/issues/179","id":344912477,"node_id":"MDU6SXNzdWUzNDQ5MTI0Nzc=","number":179,"title":"Setting backgroundTint on MaterialButton and keeping/setting disabled state","user":{"login":"adityabhaskar","id":2292388,"node_id":"MDQ6VXNlcjIyOTIzODg=","avatar_url":"https://avatars0.githubusercontent.com/u/2292388?v=4","gravatar_id":"","url":"https://api.github.com/users/adityabhaskar","html_url":"https://github.com/adityabhaskar","followers_url":"https://api.github.com/users/adityabhaskar/followers","following_url":"https://api.github.com/users/adityabhaskar/following{/other_user}","gists_url":"https://api.github.com/users/adityabhaskar/gists{/gist_id}","starred_url":"https://api.github.com/users/adityabhaskar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityabhaskar/subscriptions","organizations_url":"https://api.github.com/users/adityabhaskar/orgs","repos_url":"https://api.github.com/users/adityabhaskar/repos","events_url":"https://api.github.com/users/adityabhaskar/events{/privacy}","received_events_url":"https://api.github.com/users/adityabhaskar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-26T16:17:17Z","updated_at":"2018-07-27T09:53:04Z","closed_at":"2018-07-27T09:53:04Z","author_association":"NONE","body":"Setting backgroundTint to a Material button changes the background for both enabled and disabled states.\r\n\r\nEnabled button after adding tint: \r\n![Enabled button after adding tint](https://user-images.githubusercontent.com/2292388/43274528-58556fe8-90f7-11e8-90b7-972f40fc2f68.png)\r\n\r\nDisabled button after adding tint: \r\n![Disabled button after adding tint](https://user-images.githubusercontent.com/2292388/43274529-58716432-90f7-11e8-9fff-861f4934a3c1.png)\r\nDisabled button without adding tint:\r\n![Disabled button without adding tint](https://user-images.githubusercontent.com/2292388/43274530-588be442-90f7-11e8-81c5-785d28286d1d.png)\r\n\r\n\r\nSetting background tint to a state list drawable doesn't work either. Additionally, when set to a state list, it ignores the backgroundTintMode completely.\r\n\r\nIs there another way of setting button style for the disabled state that I'm missing, or is this just not supported?"},"comment":{"url":"https://api.github.com/repos/material-components/material-components-android/issues/comments/408371193","html_url":"https://github.com/material-components/material-components-android/issues/179#issuecomment-408371193","issue_url":"https://api.github.com/repos/material-components/material-components-android/issues/179","id":408371193,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODM3MTE5Mw==","user":{"login":"adityabhaskar","id":2292388,"node_id":"MDQ6VXNlcjIyOTIzODg=","avatar_url":"https://avatars0.githubusercontent.com/u/2292388?v=4","gravatar_id":"","url":"https://api.github.com/users/adityabhaskar","html_url":"https://github.com/adityabhaskar","followers_url":"https://api.github.com/users/adityabhaskar/followers","following_url":"https://api.github.com/users/adityabhaskar/following{/other_user}","gists_url":"https://api.github.com/users/adityabhaskar/gists{/gist_id}","starred_url":"https://api.github.com/users/adityabhaskar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityabhaskar/subscriptions","organizations_url":"https://api.github.com/users/adityabhaskar/orgs","repos_url":"https://api.github.com/users/adityabhaskar/repos","events_url":"https://api.github.com/users/adityabhaskar/events{/privacy}","received_events_url":"https://api.github.com/users/adityabhaskar/received_events","type":"User","site_admin":false},"created_at":"2018-07-27T09:53:04Z","updated_at":"2018-07-27T09:53:04Z","author_association":"NONE","body":"Thanks Gautham!\r\n\r\nThat worked. The problem was with my state list. I was setting a colour for state enabled=false, and then a fall back colour for the default enabled state. It appears I had to do the opposite.\r\n\r\nCheers!"}}
{"actor":{"display_login":"adityabhaskar"}}