{"id":2045,"date":"2014-06-26T01:36:28","date_gmt":"2014-06-25T16:36:28","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=2045"},"modified":"2020-10-20T11:02:34","modified_gmt":"2020-10-20T02:02:34","slug":"andorid-%ed%95%ad%ec%83%81-%ea%b9%8c%eb%a8%b9%eb%8a%94-spinner-%ed%95%ad%eb%aa%a9%ea%b0%92-%ec%84%a4%ec%a0%95","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=2045","title":{"rendered":"[Andorid] \ud56d\uc0c1 \uae4c\uba39\ub294 Spinner \ud56d\ubaa9\uac12 \uc124\uc815"},"content":{"rendered":"<p><P>\uc548\ub4dc\ub85c\uc774\ub4dc\ub294 \ubb50 \ud558\ub098 \ud558\ub824\uba74 \uc81c\ubc95 \uc190\uc774 \ub9ce\uc774 \uac11\ub2c8\ub2e4.. \uc2a4\ud53c\ub108\uc5d0 \ud56d\ubaa9\uac12 \ub9ac\uc2a4\ud2b8\ub97c \ud560\ub2f9\ud558\ub294 \uac83\ub3c4 \ub2e4\ub978 \ud234\uc5d0 \ube44\ud574 \uac11\uc808\uc774\ub098 \ub9ce\uc740 \ucf54\ub4dc\ub97c \uc791\uc131\ud574\uc57c \ud569\ub2c8\ub2e4.<\/P><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"java\">\r\nString[] facilityList = { \r\n    \"\uacf5\uae09\ubc30\uad00\", \"\uc0ac\uc6a9\uc790\ubc30\uad00\", \"\uacf5\uae09\ubc38\ube0c\", \"\uc815\uc555\uae30\", \"\ud14c\uc2a4\ud2b8\ubc15\uc2a4\", \r\n    \"\ub85c\ucf00\uc774\ud2b8\ubc15\uc2a4\", \"\uc815\ub958\uae30\", \"\ubc30\ub958\uae30\", \"\uc218\ucde8\uae30\", \"\uac80\uc9c0\uacf5\" \r\n};\r\n\t\t\r\nSpinner spFacilityType = (Spinner)findViewById(R.id.spFacilityType);\r\nArrayAdapter&lt;string> adapter = new ArrayAdapter&lt;string>(\r\n    this, \r\n    android.R.layout.simple_spinner_dropdown_item, \r\n    facilityList);\r\nspFacilityType.setAdapter(adapter);\r\nspFacilityType.setSelection(0);\r\n<\/pre>\n<p><P>\uadf8\ub7f0\ub370 \ub9d0\uc785\ub2c8\ub2e4&#8230; \uc774\ub807\uac8c \ud574\uc11c \ub9cc\ub4e4\uc5b4\uc9c4 \uc2a4\ud53c\ub108\uc758 \uc0dd\uae40\uc0c8\uac00 \ub2e4\uc18c \ucd0c\uc2a4\ub7fd\uc2b5\ub2c8\ub2e4. \ubc14\ub85c \uc544\ub798\ucc98\ub7fc&#8230;<\/P><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1274536588.png\" class=\"aligncenter\" width=\"183\" height=\"400\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" \/><\/p>\n<p><P>\ud45c\uc2dc\ub418\ub294 \ud56d\ubaa9\ub4e4\uc758 \ub192\uc774\uac00 \ub108\ubb34 \ub192\uc544 \ubcf4\uc774\uc9c0 \uc54a\ub098\uc694? \uc774 \ud56d\ubaa9\uc758 \ub192\uc774\uac12\uc744 \uc870\uc808\ud558\uae30 \uc704\ud574 \uc704\uc758 \ucf54\ub4dc \uc911 9\ubc88\uc904\uc758 \ucf54\ub4dc\ub97c \ubcc0\uacbd\ud588\ub294\ub370 \uc804\uccb4 \ucf54\ub4dc\ub97c \ub2e4\uc2dc \ubcf4\uba74 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/P><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"java\">\r\nString[] facilityList = { \r\n    \"\uacf5\uae09\ubc30\uad00\", \"\uc0ac\uc6a9\uc790\ubc30\uad00\", \"\uacf5\uae09\ubc38\ube0c\", \"\uc815\uc555\uae30\", \"\ud14c\uc2a4\ud2b8\ubc15\uc2a4\", \r\n    \"\ub85c\ucf00\uc774\ud2b8\ubc15\uc2a4\", \"\uc815\ub958\uae30\", \"\ubc30\ub958\uae30\", \"\uc218\ucde8\uae30\", \"\uac80\uc9c0\uacf5\" \r\n};\r\n\t\t\r\nSpinner spFacilityType = (Spinner)findViewById(R.id.spFacilityType);\r\nArrayAdapter&lt;string> adapter = new ArrayAdapter&lt;string>(\r\n    this, \r\n    R.layout.custom_simple_dropdown_item_1line, \r\n    facilityList);\r\nspFacilityType.setAdapter(adapter);\r\nspFacilityType.setSelection(0);<\/pre>\n<p>\uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1154725607.png\" width=\"183\" height=\"338\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" title=\"\" \/><\/p>\n<p><P>\uc774\ub97c \uc704\ud574 \uc5ec\uae30\uc11c \ucd94\uac00\ud55c \ub9ac\uc18c\uc2a4\uac00 \ud558\ub098 \uc788\uc2b5\ub2c8\ub2e4. \ubc14\ub85c custom_simple_dropdown_item_1line.xml\uc778\ub370\uc694. \uadf8 \ub0b4\uc6a9\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/P><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\">\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<TextView xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\" \r\n    android:id=\"@android:id\/text1\"\r\n    style=\"?android:attr\/dropDownItemStyle\"\r\n    android:textAppearance=\"?android:attr\/textAppearanceLargePopupMenu\"\r\n    android:singleLine=\"true\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"94px\"\r\n    android:textSize=\"33px\"\r\n    android:ellipsize=\"marquee\" \/>\r\n<\/pre>\n<p><P>\uc774\uc0c1 \ub9e8\ub0a0 \uae4c\uba39\uc5b4 \uace0\uc0dd\ud558\ub294 \ucf54\ub4dc\ub97c \uc815\ub9ac\ud574 \ubcf4\uc558\uc2b5\ub2c8\ub2e4.<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub4dc\ub85c\uc774\ub4dc\ub294 \ubb50 \ud558\ub098 \ud558\ub824\uba74 \uc81c\ubc95 \uc190\uc774 \ub9ce\uc774 \uac11\ub2c8\ub2e4.. \uc2a4\ud53c\ub108\uc5d0 \ud56d\ubaa9\uac12 \ub9ac\uc2a4\ud2b8\ub97c \ud560\ub2f9\ud558\ub294 \uac83\ub3c4 \ub2e4\ub978 \ud234\uc5d0 \ube44\ud574 \uac11\uc808\uc774\ub098 \ub9ce\uc740 \ucf54\ub4dc\ub97c \uc791\uc131\ud574\uc57c \ud569\ub2c8\ub2e4. String[] facilityList = { &#8220;\uacf5\uae09\ubc30\uad00&#8221;, &#8220;\uc0ac\uc6a9\uc790\ubc30\uad00&#8221;, &#8220;\uacf5\uae09\ubc38\ube0c&#8221;, &#8220;\uc815\uc555\uae30&#8221;, &#8220;\ud14c\uc2a4\ud2b8\ubc15\uc2a4&#8221;, &#8220;\ub85c\ucf00\uc774\ud2b8\ubc15\uc2a4&#8221;, &#8220;\uc815\ub958\uae30&#8221;, &#8220;\ubc30\ub958\uae30&#8221;, &#8220;\uc218\ucde8\uae30&#8221;, &#8220;\uac80\uc9c0\uacf5&#8221; }; Spinner spFacilityType = (Spinner)findViewById(R.id.spFacilityType); ArrayAdapter&lt;string> adapter = new ArrayAdapter&lt;string>( this, android.R.layout.simple_spinner_dropdown_item, facilityList); spFacilityType.setAdapter(adapter); spFacilityType.setSelection(0); \uadf8\ub7f0\ub370 \ub9d0\uc785\ub2c8\ub2e4&#8230; \uc774\ub807\uac8c \ud574\uc11c \ub9cc\ub4e4\uc5b4\uc9c4 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=2045\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[Andorid] \ud56d\uc0c1 \uae4c\uba39\ub294 Spinner \ud56d\ubaa9\uac12 \uc124\uc815&#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-2045","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\/2045","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=2045"}],"version-history":[{"count":3,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2045\/revisions"}],"predecessor-version":[{"id":10524,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2045\/revisions\/10524"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2045"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}