{"action":"created","issue":{"url":"https://api.github.com/repos/dmytrodanylyk/android-morphing-button/issues/8","labels_url":"https://api.github.com/repos/dmytrodanylyk/android-morphing-button/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/dmytrodanylyk/android-morphing-button/issues/8/comments","events_url":"https://api.github.com/repos/dmytrodanylyk/android-morphing-button/issues/8/events","html_url":"https://github.com/dmytrodanylyk/android-morphing-button/issues/8","id":123960027,"number":8,"title":"Setting a custom background does not work","user":{"login":"shiladitya-bits","id":3728959,"avatar_url":"https://avatars.githubusercontent.com/u/3728959?v=3","gravatar_id":"","url":"https://api.github.com/users/shiladitya-bits","html_url":"https://github.com/shiladitya-bits","followers_url":"https://api.github.com/users/shiladitya-bits/followers","following_url":"https://api.github.com/users/shiladitya-bits/following{/other_user}","gists_url":"https://api.github.com/users/shiladitya-bits/gists{/gist_id}","starred_url":"https://api.github.com/users/shiladitya-bits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiladitya-bits/subscriptions","organizations_url":"https://api.github.com/users/shiladitya-bits/orgs","repos_url":"https://api.github.com/users/shiladitya-bits/repos","events_url":"https://api.github.com/users/shiladitya-bits/events{/privacy}","received_events_url":"https://api.github.com/users/shiladitya-bits/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-27T04:49:48Z","updated_at":"2015-12-27T04:56:37Z","closed_at":null,"body":"I tried doing this:\r\n\r\n```xml\r\n<com.dd.morphingbutton.MorphingButton\r\n            android:id=\"@+id/buttonSend\"\r\n            style=\"?android:attr/borderlessButtonStyle\"\r\n            android:background=\"@drawable/transact_button_send\"\r\n            android:layout_width=\"?android:attr/actionBarSize\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_weight=\"1\"\r\n            android:textColor=\"@color/white\"\r\n            android:text=\"SEND\" />\r\n```\r\n\r\nThe background still stays the default blue. What is the reason for this? \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dmytrodanylyk/android-morphing-button/issues/comments/167380082","html_url":"https://github.com/dmytrodanylyk/android-morphing-button/issues/8#issuecomment-167380082","issue_url":"https://api.github.com/repos/dmytrodanylyk/android-morphing-button/issues/8","id":167380082,"user":{"login":"shiladitya-bits","id":3728959,"avatar_url":"https://avatars.githubusercontent.com/u/3728959?v=3","gravatar_id":"","url":"https://api.github.com/users/shiladitya-bits","html_url":"https://github.com/shiladitya-bits","followers_url":"https://api.github.com/users/shiladitya-bits/followers","following_url":"https://api.github.com/users/shiladitya-bits/following{/other_user}","gists_url":"https://api.github.com/users/shiladitya-bits/gists{/gist_id}","starred_url":"https://api.github.com/users/shiladitya-bits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiladitya-bits/subscriptions","organizations_url":"https://api.github.com/users/shiladitya-bits/orgs","repos_url":"https://api.github.com/users/shiladitya-bits/repos","events_url":"https://api.github.com/users/shiladitya-bits/events{/privacy}","received_events_url":"https://api.github.com/users/shiladitya-bits/received_events","type":"User","site_admin":false},"created_at":"2015-12-27T04:56:37Z","updated_at":"2015-12-27T04:56:37Z","body":"I saw the ```initView()``` method in https://github.com/dmytrodanylyk/android-morphing-button/blob/master/library/src/main/java/com/dd/morphingbutton/MorphingButton.java\r\n\r\nThe corner radius and background drawables are hardcoded. "}}