{"id":706,"date":"2011-10-07T16:37:00","date_gmt":"2011-10-07T07:37:00","guid":{"rendered":"http:\/\/adreamer.godohosting.com\/?p=706"},"modified":"2011-10-08T02:42:52","modified_gmt":"2011-10-07T17:42:52","slug":"edittext%ec%97%90%ec%84%9c-%ed%82%a4-%ec%9d%b4%eb%b2%a4%ed%8a%b8-%ec%b2%98%eb%a6%ac","status":"publish","type":"post","link":"http:\/\/milkdrops.net\/index.php\/archives\/706","title":{"rendered":"EditText\uc5d0\uc11c \ud0a4 \uc774\ubca4\ud2b8 \ucc98\ub9ac"},"content":{"rendered":"<p>EditText\uc5d0\uc11c\ub294 <a href=\"http:\/\/developer.android.com\/reference\/android\/view\/View.OnKeyListener.html\" target=\"_blank\">OnKeyListener<\/a>\ub85c back\ud0a4\ub098 Enter\ud0a4 \uc785\ub825\uc740 \ubc1b\uc744 \uc218 \uc788\ub294\ub370<br \/>\n\ubb38\uc790\uc5f4\uac19\uc740 \uc77c\ubc18\uc801\uc778 \ud0a4\uc785\ub825\uc740 \uc774\ubca4\ud2b8\ub85c \ub118\uc5b4\uc624\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc774\ub7f0 \uc774\ubca4\ud2b8\ub97c \ubc1b\uc73c\ub824\uba74 <a href=\"http:\/\/developer.android.com\/reference\/android\/text\/TextWatcher.html\" target=\"_blank\">TextWatcher<\/a>\ub77c\ub294 \uac83\uc744 \uc368\uc57c\ud558\ub354\uad70\uc694.<\/p>\n<p>\uac04\ub2e8\ud788 TextWatcher\ub97c \uad6c\ud604\ud574\uc11c EditText\uc5d0 addTextChangedListener()\ub97c \ud574\uc8fc\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<pre>TextWatcher textWatcher = new TextWatcher() {\r\n\r\n\t@Override\r\n\tpublic void beforeTextChanged(CharSequence s, int start, int count, int after) {\r\n\t\t<span style=\"color: #339966;\">\/\/ \ud14d\uc2a4\ud2b8\uac00 \ubcc0\uacbd\ub418\uae30\uc804 \uc785\ub825\ud55c \ub0b4\uc6a9\uc5d0 \ub300\ud574\r\n\t\t\/\/ s\ub294 \ubcc0\uacbd\ud560 \uc218 \uc5c6\uc74c<\/span>\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\r\n\t\t<span style=\"color: #339966;\">\/\/ \ud14d\uc2a4\ud2b8\ub97c \ubcc0\uacbd\ub41c \ud6c4 \ubcc0\uacbd \uc0ac\ud56d\uacfc \ud568\uaed8\r\n\t\t\/\/ s\ub294 \ubcc0\uacbd\ud560 \uc218 \uc5c6\uc74c<\/span>\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void afterTextChanged(Editable s) {\r\n\t\t<span style=\"color: #339966;\"> \/\/ \ud14d\uc2a4\ud2b8\uac00 \ubcc0\uacbd\ub41c \ud6c4. \ubcc0\uacbd \uc0ac\ud56d\uc740 \uc54c \uc218 \uc5c6\uc74c\r\n\t\t\/\/ s\ub294 \ubcc0\uacbd \uac00\ub2a5. \ud558\uc9c0\ub9cc \uc704 \ud568\uc218\ub4e4\uc774 \ub2e4\uc2dc \ucf5c\ubc31\ub428\uc744 \uc720\uc758<\/span>\r\n\t}\r\n\r\n};\r\n\r\neditText.addTextChangedListener(textWatcher); <span style=\"color: #339966;\">\/\/ EditText\uc778 editText\uc5d0 textWatcher\ub97c \ud578\ub4e4\ub7ec\ub85c \ub4f1\ub85d<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>EditText\uc5d0\uc11c\ub294 OnKeyListener\ub85c back\ud0a4\ub098 Enter\ud0a4 \uc785\ub825\uc740 \ubc1b\uc744 \uc218 \uc788\ub294\ub370 \ubb38\uc790\uc5f4\uac19\uc740 \uc77c\ubc18\uc801\uc778 \ud0a4\uc785\ub825\uc740 \uc774\ubca4\ud2b8\ub85c \ub118\uc5b4\uc624\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc774\ub7f0 \uc774\ubca4\ud2b8\ub97c \ubc1b\uc73c\ub824\uba74 TextWatcher\ub77c\ub294 \uac83\uc744 \uc368\uc57c\ud558\ub354\uad70\uc694. \uac04\ub2e8\ud788 TextWatcher\ub97c \uad6c\ud604\ud574\uc11c EditText\uc5d0 addTextChangedListener()\ub97c \ud574\uc8fc\uba74 \ub429\ub2c8\ub2e4. TextWatcher textWatcher = new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { \/\/ \ud14d\uc2a4\ud2b8\uac00 \ubcc0\uacbd\ub418\uae30\uc804 \uc785\ub825\ud55c \ub0b4\uc6a9\uc5d0 \ub300\ud574 \/\/ s\ub294 \ubcc0\uacbd\ud560 \uc218 &hellip; <a href=\"http:\/\/milkdrops.net\/index.php\/archives\/706\" class=\"more-link\"><span class=\"screen-reader-text\">EditText\uc5d0\uc11c \ud0a4 \uc774\ubca4\ud2b8 \ucc98\ub9ac<\/span> \ub354\ubcf4\uae30 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11,17],"tags":[102,105,103,104],"class_list":["post-706","post","type-post","status-publish","format-standard","hentry","category-tips","category-17","tag-edittext","tag-event-handler","tag-textwatcher","tag-104"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/milkdrops.net\/index.php\/wp-json\/wp\/v2\/posts\/706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/milkdrops.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/milkdrops.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/milkdrops.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/milkdrops.net\/index.php\/wp-json\/wp\/v2\/comments?post=706"}],"version-history":[{"count":7,"href":"http:\/\/milkdrops.net\/index.php\/wp-json\/wp\/v2\/posts\/706\/revisions"}],"predecessor-version":[{"id":760,"href":"http:\/\/milkdrops.net\/index.php\/wp-json\/wp\/v2\/posts\/706\/revisions\/760"}],"wp:attachment":[{"href":"http:\/\/milkdrops.net\/index.php\/wp-json\/wp\/v2\/media?parent=706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/milkdrops.net\/index.php\/wp-json\/wp\/v2\/categories?post=706"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/milkdrops.net\/index.php\/wp-json\/wp\/v2\/tags?post=706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}