{"id":10679,"date":"2020-12-05T15:40:19","date_gmt":"2020-12-05T06:40:19","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=10679"},"modified":"2020-12-05T15:40:58","modified_gmt":"2020-12-05T06:40:58","slug":"android-%eb%82%a0%ec%a7%9c-%ec%84%a0%ed%83%9d-%eb%8b%a4%ec%9d%b4%ec%96%bc%eb%a1%9c%ea%b7%b8","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=10679","title":{"rendered":"[Android] \ub0a0\uc9dc \uc120\ud0dd \ub2e4\uc774\uc5bc\ub85c\uadf8"},"content":{"rendered":"<p>\uba3c\uc800 \uc544\ub798\uc640 \uac19\uc740 UI\uac00 \uc788\uace0, \uc124\uc815 \ubc84\ud2bc\uc744 \ud130\uce58\ud558\uba74 \ub0a0\uc9dc\ub97c \uc120\ud0dd\ud560 \uc218 \uc788\ub294 \ub300\ud654\uc0c1\uc790\uac00 \ud45c\uc2dc\ub418\uba70 \uc774 \ub300\ud654\uc0c1\uc790\uc5d0\uc11c \ub0a0\uc9dc\ub97c \uc9c0\uc815\ud558\uba74 \uc9c0\uc815\ud55c \ub0a0\uc9dc\ub97c \uc5bb\uae30 \uc704\ud55c \ub0b4\uc6a9\uc774\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2020\/12\/date_dlg1.png\" alt=\"\" width=\"700\" height=\"276\" class=\"aligncenter size-full wp-image-10680\" \/><\/p>\n<p>\uc124\uc815 \ubc84\ud2bc \ud074\ub9ad\uc2dc \ud638\ucd9c\ub418\ub294 \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"kotlin\">\r\nbtnStartDate.setOnClickListener {\r\n    val today = GregorianCalendar()\r\n    val year: Int = today.get(Calendar.YEAR)\r\n    val month: Int = today.get(Calendar.MONTH)\r\n    val date: Int = today.get(Calendar.DATE)\r\n\r\n    val dlg = DatePickerDialog(this, object : DatePickerDialog.OnDateSetListener {\r\n        override fun onDateSet(view: DatePicker?, year: Int, month: Int, dayOfMonth: Int) {\r\n            etStartDate.setText(\"${year}\ub144 ${month+1}\uc6d4 ${dayOfMonth}\uc77c\")\r\n        }\r\n    }, year, month, date)\r\n\r\n    dlg.show()\r\n}\r\n<\/pre>\n<p>\uc124\uc815 \ubc84\ud2bc \ud130\uce58\uc2dc \ub2e4\uc74c\uacfc \uac19\uc740 \ub300\ud654\uc0c1\uc790\uac00 \ud45c\uc2dc\ub41c\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2020\/12\/date_dlg2.png\" alt=\"\" width=\"600\" height=\"1548\" class=\"aligncenter size-full wp-image-10681\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uba3c\uc800 \uc544\ub798\uc640 \uac19\uc740 UI\uac00 \uc788\uace0, \uc124\uc815 \ubc84\ud2bc\uc744 \ud130\uce58\ud558\uba74 \ub0a0\uc9dc\ub97c \uc120\ud0dd\ud560 \uc218 \uc788\ub294 \ub300\ud654\uc0c1\uc790\uac00 \ud45c\uc2dc\ub418\uba70 \uc774 \ub300\ud654\uc0c1\uc790\uc5d0\uc11c \ub0a0\uc9dc\ub97c \uc9c0\uc815\ud558\uba74 \uc9c0\uc815\ud55c \ub0a0\uc9dc\ub97c \uc5bb\uae30 \uc704\ud55c \ub0b4\uc6a9\uc774\ub2e4. \uc124\uc815 \ubc84\ud2bc \ud074\ub9ad\uc2dc \ud638\ucd9c\ub418\ub294 \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4. btnStartDate.setOnClickListener { val today = GregorianCalendar() val year: Int = today.get(Calendar.YEAR) val month: Int = today.get(Calendar.MONTH) val date: Int = today.get(Calendar.DATE) val dlg = DatePickerDialog(this, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=10679\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[Android] \ub0a0\uc9dc \uc120\ud0dd \ub2e4\uc774\uc5bc\ub85c\uadf8&#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-10679","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\/10679","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=10679"}],"version-history":[{"count":3,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/10679\/revisions"}],"predecessor-version":[{"id":10684,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/10679\/revisions\/10684"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10679"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}