{"action":"created","issue":{"url":"https://api.github.com/repos/JeasonWong/SlackLoadingView/issues/3","repository_url":"https://api.github.com/repos/JeasonWong/SlackLoadingView","labels_url":"https://api.github.com/repos/JeasonWong/SlackLoadingView/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/JeasonWong/SlackLoadingView/issues/3/comments","events_url":"https://api.github.com/repos/JeasonWong/SlackLoadingView/issues/3/events","html_url":"https://github.com/JeasonWong/SlackLoadingView/issues/3","id":172053183,"number":3,"title":"最后面算px和dp转换的dp2px方法里面返回有个0.5f什么意思。。","user":{"login":"516457377","id":9210009,"avatar_url":"https://avatars.githubusercontent.com/u/9210009?v=3","gravatar_id":"","url":"https://api.github.com/users/516457377","html_url":"https://github.com/516457377","followers_url":"https://api.github.com/users/516457377/followers","following_url":"https://api.github.com/users/516457377/following{/other_user}","gists_url":"https://api.github.com/users/516457377/gists{/gist_id}","starred_url":"https://api.github.com/users/516457377/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/516457377/subscriptions","organizations_url":"https://api.github.com/users/516457377/orgs","repos_url":"https://api.github.com/users/516457377/repos","events_url":"https://api.github.com/users/516457377/events{/privacy}","received_events_url":"https://api.github.com/users/516457377/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-19T04:39:56Z","updated_at":"2016-09-06T07:16:26Z","closed_at":"2016-09-06T07:16:26Z","body":"private int dp2px(Context context, float dp) {\r\n\t\tfinal float scale = context.getResources().getDisplayMetrics().density;\r\n\t\treturn (int) (dp * scale + 0.5f);\r\n\t}\r\n感觉没多大用啊"},"comment":{"url":"https://api.github.com/repos/JeasonWong/SlackLoadingView/issues/comments/244868720","html_url":"https://github.com/JeasonWong/SlackLoadingView/issues/3#issuecomment-244868720","issue_url":"https://api.github.com/repos/JeasonWong/SlackLoadingView/issues/3","id":244868720,"user":{"login":"JeasonWong","id":8034315,"avatar_url":"https://avatars.githubusercontent.com/u/8034315?v=3","gravatar_id":"","url":"https://api.github.com/users/JeasonWong","html_url":"https://github.com/JeasonWong","followers_url":"https://api.github.com/users/JeasonWong/followers","following_url":"https://api.github.com/users/JeasonWong/following{/other_user}","gists_url":"https://api.github.com/users/JeasonWong/gists{/gist_id}","starred_url":"https://api.github.com/users/JeasonWong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeasonWong/subscriptions","organizations_url":"https://api.github.com/users/JeasonWong/orgs","repos_url":"https://api.github.com/users/JeasonWong/repos","events_url":"https://api.github.com/users/JeasonWong/events{/privacy}","received_events_url":"https://api.github.com/users/JeasonWong/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T07:16:26Z","updated_at":"2016-09-06T07:16:26Z","body":"@516457377 \r\n\r\nhttp://developer.android.com/guide/practices/screens_support.html\r\n\r\n> Then add 0.5f to round the figure up to the nearest whole number, when converting to an integer."}}
{"actor":{"display_login":"JeasonWong"}}