{"id":2054,"date":"2014-08-01T08:12:22","date_gmt":"2014-08-01T08:12:22","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=2054"},"modified":"2020-08-26T13:44:44","modified_gmt":"2020-08-26T04:44:44","slug":"android-view%ec%9d%98-background%ec%97%90-%eb%9d%bc%ec%9a%b4%eb%94%a9-%ec%83%81%ec%9e%90rounding-box-%eb%84%a3%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=2054","title":{"rendered":"[Android] View\uc758 Background\uc5d0 \ub77c\uc6b4\ub529 \uc0c1\uc790(Rounding Box) \ub123\uae30"},"content":{"rendered":"<p><P>View\uc758 \ubc30\uacbd\uc5d0 \ub77c\uc6b4\ub529 \ubc15\uc2a4\ub97c \ub123\uc5b4 UI\ub97c \uae54\ub054\ud558\uac8c \uc815\ub9ac\ud574\uc57c \ud560\ub54c\uac00 \uc788\uc2b5\ub2c8\ub2e4. \ub300\ud45c\uc801\uc778 \uacbd\uc6b0\ub85c, TextView\uc5d0 \ub2e8\uc21c\ud788 \ubb38\uc790\uc5f4\ub9cc\uc744 \ud45c\uc2dc\ud558\uc9c0 \uc54a\uace0 \ub77c\uc6b4\ub529 \ubc15\uc2a4\ub97c \ub458\ub7ec \ub123\uc5b4 \uc8fc\uba74 \ubb54\uac00 \ubd80\uc871\ud55c UI\uac00 \uac1c\uc120\ub428\uc744 \ub290\ub084 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc544\ub798\uac00 \uc774\ub7ec\ud55c \uc608\uc5d0 \ub300\ud574 \uc2e4\uc81c \uc801\uc6a9\ud55c \ud654\uba74\uc785\ub2c8\ub2e4.<\/P><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1272471744.png\" width=\"472\" height=\"128\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" title=\"\" \/><\/p>\n<p><P>\uc544\ub798\ub294 \uc774\ucc98\ub7fc View\uc758 \ubc30\uacbd\uc5d0 \ub77c\uc6b4\ub529 \ubc15\uc2a4\ub97c \ub123\uae30 \uc704\ud574 View\uc758 background \uc18d\uc131\uc744 \uc9c0\uc815\ud55c xml \ub2e8 \ucf54\ub4dc\uc785\ub2c8\ub2e4.<\/P><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\">\r\n&lt;TextView \r\n    android:background=\"@drawable\/bg_gis_result_items_count\"\r\n    android:id=\"@+id\/tbResultItemCount\"\r\n    android:layout_width=\"wrap_content\"\r\n    android:layout_height=\"wrap_content\"\r\n    android:layout_gravity=\"right\"\r\n    android:textColor=\"#ffffff\"\r\n    android:textSize=\"32px\"\r\n    android:layout_marginBottom=\"35px\"\r\n    android:layout_marginLeft=\"60px\"\r\n    android:layout_marginRight=\"120px\"\r\n    android:text=\"\uac80\uc0c9 \uacb0\uacfc 0 \uac74\" \/>\r\n<\/pre>\n<p><P>\uc704\uc758 \ucf54\ub4dc\ub97c \ubcf4\uba74, \ub77c\uc6b4\ub529 \ubc15\uc2a4\ub97c \uc801\uc6a9\ud55c \ubdf0\ub294 TextView\uc774\uace0 \ubc30\uacbd\uc744 \uc9c0\uc815\ud558\uae30 \uc704\ud574 android:background \uc18d\uc131\uc5d0 @drawable\/bg_gis_result_items_count\ub97c \uc9c0\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4. \uc774\uc81c \uc774 @drawable\/bg_gis_result_items_count\uc758 \ucf54\ub4dc\ub97c \ubcf4\uba74 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4.<\/P><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\">\r\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?> \r\n&lt;shape xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"> \r\n    &lt;solid \r\n        android:color=\"#ffbacedd\" \/>\r\n\r\n    &lt;padding \r\n        android:left=\"45px\"\r\n        android:top=\"15px\"\r\n        android:right=\"45px\"\r\n        android:bottom=\"15px\" \/> \r\n\r\n    &lt;corners \r\n        android:radius=\"30px\" \/> \r\n&lt;\/shape>\r\n<\/pre>\n<p><P>\ubc30\uacbd\uc740 drawable \ud0c0\uc785\uc73c\ub85c \uc9c0\uc815\ud560 \uc218 \uc788\uc73c\uba70 \ub77c\uc6b4\ub529 \ubc15\uc2a4\ub294 \ub3c4\ud615(shape)\uc73c\ub85c \uc9c0\uc815\ud569\ub2c8\ub2e4. \ub3c4\ud615\uc740 \uc790\uc2e0\uc758 \uc0c9\uc0c1\uac12\uc744 \uc9c0\uc815\ud560 \uc218 \uc788\uace0 \ub77c\uc6b4\ub529 \ucc98\ub9ac\ub294 \uc774 \ub3c4\ud615\uc758 corners\ub97c \ud1b5\ud574 \uc9c0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>View\uc758 \ubc30\uacbd\uc5d0 \ub77c\uc6b4\ub529 \ubc15\uc2a4\ub97c \ub123\uc5b4 UI\ub97c \uae54\ub054\ud558\uac8c \uc815\ub9ac\ud574\uc57c \ud560\ub54c\uac00 \uc788\uc2b5\ub2c8\ub2e4. \ub300\ud45c\uc801\uc778 \uacbd\uc6b0\ub85c, TextView\uc5d0 \ub2e8\uc21c\ud788 \ubb38\uc790\uc5f4\ub9cc\uc744 \ud45c\uc2dc\ud558\uc9c0 \uc54a\uace0 \ub77c\uc6b4\ub529 \ubc15\uc2a4\ub97c \ub458\ub7ec \ub123\uc5b4 \uc8fc\uba74 \ubb54\uac00 \ubd80\uc871\ud55c UI\uac00 \uac1c\uc120\ub428\uc744 \ub290\ub084 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc544\ub798\uac00 \uc774\ub7ec\ud55c \uc608\uc5d0 \ub300\ud574 \uc2e4\uc81c \uc801\uc6a9\ud55c \ud654\uba74\uc785\ub2c8\ub2e4. \uc544\ub798\ub294 \uc774\ucc98\ub7fc View\uc758 \ubc30\uacbd\uc5d0 \ub77c\uc6b4\ub529 \ubc15\uc2a4\ub97c \ub123\uae30 \uc704\ud574 View\uc758 background \uc18d\uc131\uc744 \uc9c0\uc815\ud55c xml \ub2e8 \ucf54\ub4dc\uc785\ub2c8\ub2e4. &lt;TextView android:background=&#8221;@drawable\/bg_gis_result_items_count&#8221; android:id=&#8221;@+id\/tbResultItemCount&#8221; android:layout_width=&#8221;wrap_content&#8221; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=2054\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[Android] View\uc758 Background\uc5d0 \ub77c\uc6b4\ub529 \uc0c1\uc790(Rounding Box) \ub123\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-2054","post","type-post","status-publish","format-standard","hentry","category-android"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2054"}],"version-history":[{"count":4,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2054\/revisions"}],"predecessor-version":[{"id":10236,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2054\/revisions\/10236"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2054"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}