{"id":554,"date":"2014-08-29T02:09:37","date_gmt":"2014-08-29T02:09:37","guid":{"rendered":"http:\/\/blog.moramcnt.com\/?p=554"},"modified":"2015-01-05T13:03:15","modified_gmt":"2015-01-05T04:03:15","slug":"%ec%95%88%eb%93%9c%eb%a1%9c%ec%9d%b4%eb%93%9c-%eb%b2%84%ed%8a%bc%ec%9d%98-%ec%9d%b4%eb%af%b8%ec%a7%80%eb%a5%bc-%ea%b7%b8%eb%a0%88%ec%9d%b4%eb%a1%9c-%eb%a7%8c%eb%93%a4%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/blog.moramcnt.com\/?p=554","title":{"rendered":"\uc548\ub4dc\ub85c\uc774\ub4dc \ubc84\ud2bc\uc758 \uc774\ubbf8\uc9c0\ub97c \uadf8\ub808\uc774\ub85c \ub9cc\ub4e4\uae30"},"content":{"rendered":"<pre>\r\n\t<Button\tandroid:id=\"@+id\/ibtWork\"  \r\n\t\t\t\t\t\t\tandroid:layout_width=\"220dip\"\r\n\t\t\t\t\t\t\tandroid:layout_height=\"145dip\"\r\n\t\t\t\t\t\t\tandroid:padding=\"5dip\"\r\n\t\t\t\t\t\t\tandroid:gravity=\"center\"\r\n\t\t\t\t\t\t\tandroid:hapticFeedbackEnabled=\"true\"\r\n\t\t\t\t\t\t\tandroid:background=\"@drawable\/btn_dark_translucent\"\r\n\t\t\t\t\t\t\tandroid:drawableTop=\"@drawable\/icn_menu_work\"\r\n\t\t\t\t\t\t\tandroid:textSize=\"20sp\"\r\n\t\t\t\t\t\t\tandroid:textStyle=\"bold\"\r\n\t\t\t\t\t    \tandroid:textColor=\"@color\/white\" \r\n\t\t\t\t\t\t\tandroid:text=\"@string\/main_menu_work\"\/>\t\t\r\n<\/pre>\n<pre>\r\nfinal Drawable daWork = mBtnWork.getCompoundDrawables()[1]; \/\/ 1\ubc88\uc9f8\uac00 TOP \uc774\ubbf8\uc9c0, \uc774\uc720\ub294 \uc704\uc5d0\uc11c android:drawableTop\uc73c\ub85c \ud558\uc600\uae30\ub54c\ubb38\uc5d0..\r\nif(daWork != null) mBtnWork.setCompoundDrawables(null, convertToGrayscale(daWork), null, null);\r\n<\/pre>\n<pre>\r\n    protected Drawable convertToGrayscale(Drawable drawable)\r\n    {\r\n        ColorMatrix cmMatrix = new ColorMatrix();\r\n        cmMatrix.setSaturation(0); \/\/0\uc774\uba74 grayscale\r\n        drawable.setColorFilter(new ColorMatrixColorFilter(cmMatrix));\r\n        return drawable;\r\n    }\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>final Drawable daWork = mBtnWork.getCompoundDrawables()[1]; \/\/ 1\ubc88\uc9f8\uac00 TOP \uc774\ubbf8\uc9c0, \uc774\uc720\ub294 \uc704\uc5d0\uc11c android:drawableTop\uc73c\ub85c \ud558\uc600\uae30\ub54c\ubb38\uc5d0.. if(daWork != null) mBtnWork.setCompoundDrawables(null, convertToGrayscale(daWork), null, null); protected Drawable convertToGrayscale(Drawable drawable) { ColorMatrix cmMatrix = new ColorMatrix(); cmMatrix.setSaturation(0); \/\/0\uc774\uba74 grayscale drawable.setColorFilter(new ColorMatrixColorFilter(cmMatrix)); return drawable; }<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[6,23,4],"tags":[112,113,114,115,79,116,78,111],"class_list":["post-554","post","type-post","status-publish","format-standard","hentry","category-java","category-23","category-4","tag-android","tag-button","tag-gray","tag-grayscale","tag-moramcnt","tag-116","tag-78","tag-111"],"_links":{"self":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=554"}],"version-history":[{"count":2,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/554\/revisions"}],"predecessor-version":[{"id":556,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/554\/revisions\/556"}],"wp:attachment":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=554"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}