{"action":"created","issue":{"url":"https://api.github.com/repos/mikepenz/Android-Iconics/issues/71","labels_url":"https://api.github.com/repos/mikepenz/Android-Iconics/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/Android-Iconics/issues/71/comments","events_url":"https://api.github.com/repos/mikepenz/Android-Iconics/issues/71/events","html_url":"https://github.com/mikepenz/Android-Iconics/issues/71","id":102958897,"number":71,"title":"IconicsButton is not working well.","user":{"login":"h6ah4i","id":2552365,"avatar_url":"https://avatars.githubusercontent.com/u/2552365?v=3","gravatar_id":"","url":"https://api.github.com/users/h6ah4i","html_url":"https://github.com/h6ah4i","followers_url":"https://api.github.com/users/h6ah4i/followers","following_url":"https://api.github.com/users/h6ah4i/following{/other_user}","gists_url":"https://api.github.com/users/h6ah4i/gists{/gist_id}","starred_url":"https://api.github.com/users/h6ah4i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h6ah4i/subscriptions","organizations_url":"https://api.github.com/users/h6ah4i/orgs","repos_url":"https://api.github.com/users/h6ah4i/repos","events_url":"https://api.github.com/users/h6ah4i/events{/privacy}","received_events_url":"https://api.github.com/users/h6ah4i/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-25T06:29:26Z","updated_at":"2015-08-25T06:33:22Z","closed_at":null,"body":"Hi. I noticed that the `IconicsButton` widget is not styled properly on my app, and I've tried to fix it.\r\n\r\n\r\n| On Android 5.1.1  | On Android 4.4.2  |\r\n|---|---|\r\n| <img src=\"https://cloud.githubusercontent.com/assets/2552365/9459892/ab0609aa-4b3b-11e5-8679-aff892601d74.png\" width=\"150\" /> | <img src=\"https://cloud.githubusercontent.com/assets/2552365/9459893/ab0a1ebe-4b3b-11e5-8a7b-36d086f6936c.png\" width=\"150\" /> |\r\n\r\n- Left side buttons:\r\n  - original `IconicsButton` widget\r\n- Right side buttons:\r\n  - [`FixedIconicsButton`] (https://github.com/h6ah4i/AndroidIconicsBugCheck/blob/master/app/src/main/java/com/h6ah4i/android/example/androidiconicsbugcheck/FixedIconicsButton.java) widget\r\n\r\n---\r\n\r\n```java\r\npublic class FixedIconicsButton extends Button {\r\n    public FixedIconicsButton(Context context) {\r\n        super(context);\r\n        // Do not set typeface here\r\n    }\r\n\r\n    public FixedIconicsButton(Context context, AttributeSet attrs) {\r\n        super(context, attrs);\r\n        // Do not set typeface here\r\n    }\r\n\r\n    public FixedIconicsButton(Context context, AttributeSet attrs, int defStyleAttr) {\r\n        super(context, attrs, defStyleAttr);\r\n        // Do not set typeface here\r\n    }\r\n\r\n    public void setText(CharSequence text, BufferType type) {\r\n        // NOTES:\r\n        // 1. Need to disable the All Caps option to make Spannable work properly!\r\n        // 2. This method will be called from the constructor of the super class\r\n        if (Build.VERSION.SDK_INT > Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\r\n            setAllCaps(false);\r\n        }\r\n\r\n        if(!this.isInEditMode()) {\r\n            super.setText((new Iconics.IconicsBuilder()).ctx(this.getContext()).on(text).build(), type);\r\n        } else {\r\n            super.setText(text, type);\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n---\r\n\r\nFull of the sample code is uploaded at the following repository.\r\nhttps://github.com/h6ah4i/AndroidIconicsBugCheck"},"comment":{"url":"https://api.github.com/repos/mikepenz/Android-Iconics/issues/comments/134495617","html_url":"https://github.com/mikepenz/Android-Iconics/issues/71#issuecomment-134495617","issue_url":"https://api.github.com/repos/mikepenz/Android-Iconics/issues/71","id":134495617,"user":{"login":"mikepenz","id":1476232,"avatar_url":"https://avatars.githubusercontent.com/u/1476232?v=3","gravatar_id":"","url":"https://api.github.com/users/mikepenz","html_url":"https://github.com/mikepenz","followers_url":"https://api.github.com/users/mikepenz/followers","following_url":"https://api.github.com/users/mikepenz/following{/other_user}","gists_url":"https://api.github.com/users/mikepenz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikepenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikepenz/subscriptions","organizations_url":"https://api.github.com/users/mikepenz/orgs","repos_url":"https://api.github.com/users/mikepenz/repos","events_url":"https://api.github.com/users/mikepenz/events{/privacy}","received_events_url":"https://api.github.com/users/mikepenz/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T06:33:22Z","updated_at":"2015-08-25T06:33:22Z","body":"@h6ah4i really interesting. I already added this here:\r\n\r\nhttps://github.com/mikepenz/Android-Iconics/blob/develop/library-core/src/main/java/com/mikepenz/iconics/Iconics.java#L339\r\n\r\nBut it seems it is not working in all cases. Thanks i'll add this to the main `IconicsButton`"}}