{"action":"closed","issue":{"url":"https://api.github.com/repos/mikepenz/Android-Iconics/issues/70","labels_url":"https://api.github.com/repos/mikepenz/Android-Iconics/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/Android-Iconics/issues/70/comments","events_url":"https://api.github.com/repos/mikepenz/Android-Iconics/issues/70/events","html_url":"https://github.com/mikepenz/Android-Iconics/issues/70","id":102907725,"number":70,"title":"I would expect getFormattedName to have '_' replaced to '-' so can be used in code","user":{"login":"clement9527","id":12775115,"avatar_url":"https://avatars.githubusercontent.com/u/12775115?v=3","gravatar_id":"","url":"https://api.github.com/users/clement9527","html_url":"https://github.com/clement9527","followers_url":"https://api.github.com/users/clement9527/followers","following_url":"https://api.github.com/users/clement9527/following{/other_user}","gists_url":"https://api.github.com/users/clement9527/gists{/gist_id}","starred_url":"https://api.github.com/users/clement9527/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clement9527/subscriptions","organizations_url":"https://api.github.com/users/clement9527/orgs","repos_url":"https://api.github.com/users/clement9527/repos","events_url":"https://api.github.com/users/clement9527/events{/privacy}","received_events_url":"https://api.github.com/users/clement9527/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mikepenz/Android-Iconics/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"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},"milestone":null,"comments":1,"created_at":"2015-08-24T22:47:01Z","updated_at":"2015-08-25T15:03:04Z","closed_at":"2015-08-25T15:03:04Z","body":"I am trying to change the icon pragmatically as the following: \r\n\r\n```java\r\nmArrowIcon.setText(\r\n  active ? \r\n    GoogleMaterial.Icon.gmd_keyboard_arrow_down.getFormattedName():\r\n    GoogleMaterial.Icon.gmd_keyboard_arrow_right.getFormattedName()\r\n);\r\n```\r\nIt won't work as getFormattedName is using '_' instead of '-' so cannot be formatted properly. \r\n\r\nThe fix should be pretty simple, just change getFormattedName() to the following:\r\n```java\r\npublic String getFormattedName() {\r\n    return \"{\" + this.name().replace('_', '-') + \"}\";\r\n}\r\n```"}}