{"id":111,"date":"2018-01-19T14:57:17","date_gmt":"2018-01-19T05:57:17","guid":{"rendered":"http:\/\/oksisi2.ddns.net:8092\/wordpress\/?p=111"},"modified":"2021-06-09T17:28:57","modified_gmt":"2021-06-09T08:28:57","slug":"statusbar-%ec%97%90%ec%84%9c%ec%9d%98-notification-icon","status":"publish","type":"post","link":"https:\/\/charlezz.com\/?p=111","title":{"rendered":"Statusbar \uc5d0\uc11c\uc758 Notification Icon"},"content":{"rendered":"<p>\ub178\ud2f0\ud53c\ucf00\uc774\uc158 \uc81c\uc791 \uac00\uc774\ub4dc :\u00a0https:\/\/developer.android.com\/guide\/topics\/ui\/notifiers\/notifications.html?hl=ko<br \/>\n\ub178\ud2f0\ud53c\ucf00\uc774\uc158 \uc544\uc774\ucf58 \ub514\uc790\uc778 \uac00\uc774\ub4dc :\u00a0https:\/\/material.io\/guidelines\/patterns\/notifications.html?hl=ko<br \/>\n\u00a0<br \/>\n\ub864\ub9ac\ud31d\uc774\ud6c4 \uba54\ud14c\ub9ac\uc5bc \ub514\uc790\uc778\uc774 \ub3c4\uc785\ub418\uba74\uc11c, \ub178\ud2f0\ud53c\ucf00\uc774\uc158 \uc544\uc774\ucf58\uc740 \ubc18\ub4dc\uc2dc \ud770\uc0c9\uc774\uc5ec\uc57c \ud558\uba70 alpha \uac12 \uc870\uc808\uc744 \ud1b5\ud574 \uc544\uc774\ucf58\uc758 \ub514\uc790\uc778\uc744 \uacb0\uc815\ud574\uc57c \ud55c\ub2e4.<\/p>\n<pre class=\"\">Notification noti = new NotificationCompat.Builder(this, CHANNEL_ID)\r\n      .setSmallIcon(R.drawable.icon_rounded)\r\n      .setContentTitle(\"\uc81c\ubaa9\")\r\n      .setContentText(\"\ub0b4\uc6a9\")\r\n      .setColor(ContextCompat.getColor(this, R.color.colorAccent))\r\n      .build();\r\nnm.notify(1, noti);\r\n<\/pre>\n<p>setSmallIcon()\uc740 \ub178\ud2f0\ud53c\ucf00\uc774\uc158\uc758 \uc544\uc774\ucf58\uc744 \uacb0\uc815\ud558\uba70, setColor()\uc5d0 \uc758\ud574 \ud770\uc0c9\uc774\uc600\ub358 \ubd80\ubd84\uc744 \ub2e8\uc0c9\uc73c\ub85c \uc0c9\uce60\ud55c\ub2e4\uace0 \ubcf4\uba74 \ub41c\ub2e4. \ud558\uc9c0\ub9cc! \uc0bc\uc131 Galaxy \uc2dc\ub9ac\uc988\uc5d0\uc11c\ub294 \ub178\ud2f0 \uc544\uc774\ucf58\uc774 \uad6c\uae00 \uac00\uc774\ub4dc \ubb34\uc2dc\ud558\uace0 \uadf8\ub0e5 \ub0b4\uac00 \ub123\ub294 \uc774\ubbf8\uc9c0 \uadf8\ub300\ub85c \ud45c\ud604\ub41c\ub2e4. \uc774\uac83\ub54c\ubb38\uc5d0 \uad6c\uae00 \uac00\uc774\ub4dc\ub300\ub85c \ub9cc\ub4e4\uba74 \uc0bc\uc131\ud3f0\uc5d0\uc11c\ub294 \uc544\uc774\ucf58\uc774 StatusBar\uc5d0\uc11c\ub294 \uc81c\ub300\ub85c \ubcf4\uc774\ub294 \ub4ef \ud558\ub098 \ub178\ud2f0\ud53c\ucf00\uc774\uc158 \uc601\uc5ed\uc5d0\uc11c\ub294 \uc544\uc774\ucf58\uc774 \uadf8\ub0e5 \ud770\uc0c9\uc73c\ub85c \ub098\uc624\uace0 \uc2ec\uc9c0\uc5b4 \ubc30\uacbd\ub3c4 \uc544\uc774\ubcf4\ub9ac \uacc4\uc5f4\ud770\uc0c9\uc73c\ub85c\ub098\uc640\uc11c \uc798 \ubcf4\uc774\uc9c0 \uc54a\ub294\ub2e4. \uacb0\uad6d \ubd84\uae30 \ucc98\ub9ac&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub178\ud2f0\ud53c\ucf00\uc774\uc158 \uc81c\uc791 \uac00\uc774\ub4dc :\u00a0https:\/\/developer.android.com\/guide\/topics\/ui\/notifiers\/notifications.html?hl=ko \ub178\ud2f0\ud53c\ucf00\uc774\uc158 \uc544\uc774\ucf58 \ub514\uc790\uc778 \uac00\uc774\ub4dc :\u00a0https:\/\/material.io\/guidelines\/patterns\/notifications.html?hl=ko \u00a0 \ub864\ub9ac\ud31d\uc774\ud6c4 \uba54\ud14c\ub9ac\uc5bc \ub514\uc790\uc778\uc774 \ub3c4\uc785\ub418\uba74\uc11c, \ub178\ud2f0\ud53c\ucf00\uc774\uc158 \uc544\uc774\ucf58\uc740 \ubc18\ub4dc\uc2dc \ud770\uc0c9\uc774\uc5ec\uc57c \ud558\uba70 alpha \uac12 \uc870\uc808\uc744 \ud1b5\ud574 \uc544\uc774\ucf58\uc758 \ub514\uc790\uc778\uc744 \uacb0\uc815\ud574\uc57c \ud55c\ub2e4. Notification noti = new NotificationCompat.Builder(this, CHANNEL_ID) .setSmallIcon(R.drawable.icon_rounded) .setContentTitle(&#8220;\uc81c\ubaa9&#8221;) .setContentText(&#8220;\ub0b4\uc6a9&#8221;) .setColor(ContextCompat.getColor(this, R.color.colorAccent)) .build(); nm.notify(1, noti); setSmallIcon()\uc740 \ub178\ud2f0\ud53c\ucf00\uc774\uc158\uc758 \uc544\uc774\ucf58\uc744 \uacb0\uc815\ud558\uba70, setColor()\uc5d0 \uc758\ud574 \ud770\uc0c9\uc774\uc600\ub358 \ubd80\ubd84\uc744 \ub2e8\uc0c9\uc73c\ub85c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[16],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/posts\/111"}],"collection":[{"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/charlezz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=111"}],"version-history":[{"count":1,"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions"}],"predecessor-version":[{"id":45174,"href":"https:\/\/charlezz.com\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions\/45174"}],"wp:attachment":[{"href":"https:\/\/charlezz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/charlezz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/charlezz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}