{"action":"created","issue":{"url":"https://api.github.com/repos/navasmdc/MaterialDesignLibrary/issues/221","labels_url":"https://api.github.com/repos/navasmdc/MaterialDesignLibrary/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/navasmdc/MaterialDesignLibrary/issues/221/comments","events_url":"https://api.github.com/repos/navasmdc/MaterialDesignLibrary/issues/221/events","html_url":"https://github.com/navasmdc/MaterialDesignLibrary/issues/221","id":66070320,"number":221,"title":"Float Button is wrong size, color unchangable","user":{"login":"yhack","id":5070148,"avatar_url":"https://avatars.githubusercontent.com/u/5070148?v=3","gravatar_id":"","url":"https://api.github.com/users/yhack","html_url":"https://github.com/yhack","followers_url":"https://api.github.com/users/yhack/followers","following_url":"https://api.github.com/users/yhack/following{/other_user}","gists_url":"https://api.github.com/users/yhack/gists{/gist_id}","starred_url":"https://api.github.com/users/yhack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhack/subscriptions","organizations_url":"https://api.github.com/users/yhack/orgs","repos_url":"https://api.github.com/users/yhack/repos","events_url":"https://api.github.com/users/yhack/events{/privacy}","received_events_url":"https://api.github.com/users/yhack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-03T04:03:14Z","updated_at":"2015-04-07T12:02:58Z","closed_at":null,"body":"Based on the Material Design guidelines, the Floating Action button should be 56dp. The float button is smaller. It looks like the problem is caused by this file:\r\n\r\nhttps://github.com/navasmdc/MaterialDesignLibrary/blob/master/MaterialDesign/res/drawable/background_button_float.xml\r\n\r\nAdditionally, changing the background color in the button's XML (e.g. `android:background=\"#1E88E5\"`) has no effect. It seems to be caused by the color being hard coded in the same file mentioned above.\r\n\r\nI can't test it, but removing the following lines might fix the problem:\r\n```\r\n        android:bottom=\"2dp\"\r\n        android:left=\"1dp\"\r\n        android:top=\"1dp\"\r\n        android:right=\"1dp\">\r\n```\r\nand\r\n```\r\n            <solid android:color=\"#1E88E5\" />\r\n```\r\nCan anyone confirm this?\r\n\r\nMy workaround right now, which gets the button to the correct size, is to is to set the size in the XML as follows:\r\n```\r\n            android:layout_width=\"58dp\"\r\n            android:layout_height=\"59dp\"\r\n```"},"comment":{"url":"https://api.github.com/repos/navasmdc/MaterialDesignLibrary/issues/comments/90527090","html_url":"https://github.com/navasmdc/MaterialDesignLibrary/issues/221#issuecomment-90527090","issue_url":"https://api.github.com/repos/navasmdc/MaterialDesignLibrary/issues/221","id":90527090,"user":{"login":"androchentw","id":2317501,"avatar_url":"https://avatars.githubusercontent.com/u/2317501?v=3","gravatar_id":"","url":"https://api.github.com/users/androchentw","html_url":"https://github.com/androchentw","followers_url":"https://api.github.com/users/androchentw/followers","following_url":"https://api.github.com/users/androchentw/following{/other_user}","gists_url":"https://api.github.com/users/androchentw/gists{/gist_id}","starred_url":"https://api.github.com/users/androchentw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/androchentw/subscriptions","organizations_url":"https://api.github.com/users/androchentw/orgs","repos_url":"https://api.github.com/users/androchentw/repos","events_url":"https://api.github.com/users/androchentw/events{/privacy}","received_events_url":"https://api.github.com/users/androchentw/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T12:02:58Z","updated_at":"2015-04-07T12:02:58Z","body":"Thanks @willybaer for the solution, worked on my API 19 device, too.\r\nTo be specific, it's better to do it with\r\n`setBackgroundColor(getResources().getColor(R.color.backgroundColor));`\r\n"}}