{"id":2204,"date":"2015-06-02T08:07:05","date_gmt":"2015-06-02T08:07:05","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=2204"},"modified":"2017-01-26T22:48:33","modified_gmt":"2017-01-26T13:48:33","slug":"android-listview%ec%9d%98-%ec%84%a0%ed%83%9d-%ed%95%ad%eb%aa%a9%ec%97%90-%eb%8c%80%ed%95%9c-%ed%95%98%ec%9d%b4%eb%9d%bc%ec%9d%b4%ed%8c%85hilighting","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=2204","title":{"rendered":"[Android] ListView\uc758 \uc120\ud0dd \ud56d\ubaa9\uc5d0 \ub300\ud55c \ud558\uc774\ub77c\uc774\ud305(Hilighting) \ub610\ub294 \ubc30\uacbd\uc0c9 \ubcc0\uacbd"},"content":{"rendered":"<p><P>\uc548\ub4dc\ub85c\uc774\ub4dc\uc5d0\uc11c ListView \uc704\uc82f\uc5d0 \ub370\uc774\ud130 \ubaa9\ub85d\uc744 \ud45c\uc2dc\ud558\uace0 \uc0ac\uc6a9\uc790\uac00 \ub370\uc774\ud130 \ud56d\ubaa9\uc744 \ud130\uce58\ud558\uba74 \uc5b4\ub5a4 \ud56d\ubaa9\uc774 \ud130\uce58\uac00 \ub418\uc5c8\ub294\uc9c0\uc5d0 \ub300\ud55c \ud53c\ub4dc\ubc31\uc774 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \uc548\ub4dc\ub85c\uc774\ub4dc\uc5d0\uc11c\ub294 \uae30\ubcf8\uc801\uc73c\ub85c \uc774\ub7ec\ud55c \ud53c\ub4dc\ubc31\uc744 \uc81c\uacf5\ud574 \uc8fc\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ud53c\ub4dc\ubc31\uc744 \uc81c\uacf5\ud574\uc8fc\uae30 \uc704\ud55c \uc808\ucc28\uc785\ub2c8\ub2e4. \uc544\ub798\ub294 \uc0ac\uc6a9\uc790\uac00 \ud56d\ubaa9\uc744 \ud130\uce58\ud588\uc744 \ub54c \uc55e\uc11c \uc5b8\uae09\ud55c \ud53c\ub4dc\ubc31\uc5d0 \ub300\ud55c \ud6a8\uacfc\uc5d0 \ub300\ud55c \uc774\ubbf8\uc9c0\uc785\ub2c8\ub2e4.<\/P><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1008284402.png\" \/><\/p>\n<p><P>\uba3c\uc800 ListView\uac00 \uc544\ub798\ucc98\ub7fc \uc815\uc758\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \ud56d\ubaa9 \uc120\ud0dd\uc5d0 \ub300\ud55c \ud53c\ub4dc\ubc31\uc744 \uc704\ud574 \ud2b9\ubcc4\ud788 \ud574\uc900 \uac83\uc740 \uc5c6\uc2b5\ub2c8\ub2e4.<\/P><\/p>\n<pre>\r\n...\r\n\r\n<ListView\r\n    android:id=\"@+id\/lvResult\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    android:background=\"#ffffff\"\r\n    android:divider=\"#bacedd\"\r\n    android:dividerHeight=\"1px\"\r\n\/>\r\n\r\n...\r\n\r\n<\/pre>\n<p><P>ListView\ub294 \ucc44\uc6cc\uc9c8 \ud56d\ubaa9\uc744 \uc704\ud55c \ub808\uc774\uc544\uc6c3\uc744 \uc815\uc758\ud558\uac8c \ub418\ub294\ub370\uc694. \uc774 \ub808\uc774\uc544\uc6c3\uc758 \ubc30\uacbd\uc744 Selector\ub85c \uc9c0\uc815\ud558\ub294\uac8c \ud0a4\ud3ec\uc778\ud2b8\uc785\ub2c8\ub2e4. \ubc14\ub85c \uc544\ub798\ucc98\ub7fc \ub9d0\uc785\ub2c8\ub2e4.<\/P><\/p>\n<pre>\r\n<LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n    android:layout_width=\"match_parent\"\r\n    android:background=\"@drawable\/selector_listview_item\"\r\n    android:layout_height=\"36dp\"\r\n    android:orientation=\"horizontal\" >\r\n\r\n    <!-- \ud56d\ubaa9\uc5d0 \ub300\ud55c \ub2e4\uc591\ud55c View\uac00 \ubc30\uce58\ub428 -->\r\n\r\n<\/LinearLayout>\r\n<\/pre>\n<p><P>\uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c \uc911\uc694\ud55c \uac83\uc740 \ubc14\ub85c 3\ubc88 \ucf54\ub4dc\uc785\ub2c8\ub2e4. background\ub97c selector_listview_item\uc73c\ub85c \uc9c0\uc815\ud558\uace0 \uc788\ub294\ub370, \uc774 selector_listview_item\uc5d0 \ub300\ud55c XML \ucf54\ub4dc\ub294 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4.<\/P><\/p>\n<pre>\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n    <selector xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\">\r\n    <item \r\n        android:drawable=\"@color\/ItemSelectedColor\" \r\n        android:state_pressed=\"true\" \/>\r\n<\/selector>\r\n<\/pre>\n<p><P>\uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c \uc911\uc694\ud55c \ubd80\ubd84\uc740 4\ubc88\uacfc 5\ubc88\uc778\ub370\uc694. 5\ubc88\uc5d0\uc11c \ud56d\ubaa9\uc5d0 \ub300\ud55c \uc0c1\ud0dc\uac00 \ub9cc\uc871\ub420 \uacbd\uc6b0, \uc989 state_pressed\uac00 \ucc38(true)\uc77c \uacbd\uc6b0\uc5d0 4\ubc88 \ucf54\ub4dc\uc5d0\uc11c \uc9c0\uc815\ud55c Drawable\ub97c \uc774\uc6a9\ud574 \uadf8\ub9ac\ub77c\ub294 \uac83\uc785\ub2c8\ub2e4. 4\ubc88 \ucf54\ub4dc\uc5d0\uc11c \uc9c0\uc815\ud55c drawable\uc778 ItemSelectedColor\ub294 color.xml\uc5d0 \ub2e4\uc74c\ucc98\ub7fc \uc815\uc758\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<\/P><\/p>\n<pre>\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<resources>\r\n    <color name=\"ItemSelectedColor\">#8EE2FB<\/color>\r\n<\/resources>\r\n<\/pre>\n<p><P>\uc704\uc758 \ucf54\ub4dc \uc911 3\ubc88\uc5d0\uc11c \uc9c0\uc815\ud55c \uc6f9 \uceec\ub7ec \ud45c\ud604\uac12\uc778 #8EE2FB\ub85c \uc9c0\uc815\ub429\ub2c8\ub2e4.<\/P><\/p>\n<p><P>\ud56d\ubaa9 \uc120\ud0dd\ud558\uba74 \uc0ac\uc6a9\uc790\uc5d0\uac8c \ud53c\ub4dc\ubc31\uc744 \uc8fc\ub294 \uac83\uc774 \ub2f9\uc5f0\ud55c\ub370, \uc548\ub4dc\ub85c\uc774\ub4dc\ub294 \uadf8\ub807\uc9c0 \uc54a\ub2e4\ub294 \uc810.. \ubd84\uba85\ud788, \uc0c1\ub2f9\ud788 \ubd88\ud3b8\ud55c \uac83\uc774 \ud2c0\ub9bc\uc5c6\uc9c0\ub9cc.. \uae30\ub2a5\uc5d0 \ub300\ud55c \ub113\uc740 \ud655\uc7a5\uc131\uacfc \ub192\uc740 \uc751\uc6a9\uc131\uc744 \uc704\ud574 \uc774\ub7ec\ud55c \ubc29\uc2dd\uc744 \ucde8\ud588\ub2e4.. \uc0dd\uac01\ud569\ub2c8\ub2e4.<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub4dc\ub85c\uc774\ub4dc\uc5d0\uc11c ListView \uc704\uc82f\uc5d0 \ub370\uc774\ud130 \ubaa9\ub85d\uc744 \ud45c\uc2dc\ud558\uace0 \uc0ac\uc6a9\uc790\uac00 \ub370\uc774\ud130 \ud56d\ubaa9\uc744 \ud130\uce58\ud558\uba74 \uc5b4\ub5a4 \ud56d\ubaa9\uc774 \ud130\uce58\uac00 \ub418\uc5c8\ub294\uc9c0\uc5d0 \ub300\ud55c \ud53c\ub4dc\ubc31\uc774 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \uc548\ub4dc\ub85c\uc774\ub4dc\uc5d0\uc11c\ub294 \uae30\ubcf8\uc801\uc73c\ub85c \uc774\ub7ec\ud55c \ud53c\ub4dc\ubc31\uc744 \uc81c\uacf5\ud574 \uc8fc\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ud53c\ub4dc\ubc31\uc744 \uc81c\uacf5\ud574\uc8fc\uae30 \uc704\ud55c \uc808\ucc28\uc785\ub2c8\ub2e4. \uc544\ub798\ub294 \uc0ac\uc6a9\uc790\uac00 \ud56d\ubaa9\uc744 \ud130\uce58\ud588\uc744 \ub54c \uc55e\uc11c \uc5b8\uae09\ud55c \ud53c\ub4dc\ubc31\uc5d0 \ub300\ud55c \ud6a8\uacfc\uc5d0 \ub300\ud55c \uc774\ubbf8\uc9c0\uc785\ub2c8\ub2e4. \uba3c\uc800 ListView\uac00 \uc544\ub798\ucc98\ub7fc \uc815\uc758\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \ud56d\ubaa9 \uc120\ud0dd\uc5d0 \ub300\ud55c \ud53c\ub4dc\ubc31\uc744 \uc704\ud574 \ud2b9\ubcc4\ud788 \ud574\uc900 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=2204\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[Android] ListView\uc758 \uc120\ud0dd \ud56d\ubaa9\uc5d0 \ub300\ud55c \ud558\uc774\ub77c\uc774\ud305(Hilighting) \ub610\ub294 \ubc30\uacbd\uc0c9 \ubcc0\uacbd&#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":[73],"class_list":["post-2204","post","type-post","status-publish","format-standard","hentry","category-android","tag-android"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2204","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=2204"}],"version-history":[{"count":1,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2204\/revisions"}],"predecessor-version":[{"id":2747,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2204\/revisions\/2747"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2204"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}