tag:blogger.com,1999:blog-7565989862281145057.post2056631737505495433..comments2024-01-25T15:57:17.280-08:00Comments on AndroidBlogger: EditText with limited number of charactersAndroidBloggerhttp://www.blogger.com/profile/03281698485999677325noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7565989862281145057.post-19211683896922517262009-07-15T09:21:59.107-07:002009-07-15T09:21:59.107-07:00Hi Indiana,
If you want a post treatment to vali...Hi Indiana, <br /><br />If you want a post treatment to validate each keys entered on this edit text, I had a solution here :<br /><a href="http://androidblogger.blogspot.com/2008/12/edittext-numeric-only.html" rel="nofollow"><br />http://androidblogger.blogspot.com/2008/12/edittext-numeric-only.html</a><br /><br />Hope it helps...AndroidBloggerhttps://www.blogger.com/profile/03281698485999677325noreply@blogger.comtag:blogger.com,1999:blog-7565989862281145057.post-23510703110644009142009-07-12T23:37:18.041-07:002009-07-12T23:37:18.041-07:00Hi AndroidBlogger,
I would like to build an EditTe...Hi AndroidBlogger,<br />I would like to build an EditText control with dynamically symbol (non-character) filtering. Do you have any idea of this simple funciton, or could you please give me some hints or examples? Thank you!Indianahttps://www.blogger.com/profile/15241167238798654398noreply@blogger.comtag:blogger.com,1999:blog-7565989862281145057.post-91173622684549496152009-04-21T00:59:00.000-07:002009-04-21T00:59:00.000-07:00Yes, you're completely right.
I missed the easy ve...Yes, you're completely right.<br />I missed the easy versions for some time (the doc is quite obscur at some time ).<br />But I finally found it and post about it here :<br /><A HREF="http://androidblogger.blogspot.com/2009/01/numeric-edittext-and-edittext-with-max.html" REL="nofollow">numeric editText and EditText with max number of characters... yes, again !</A>And the Xml version is even simpler :)<br /><br />Thanks for your input !AndroidBloggerhttps://www.blogger.com/profile/03281698485999677325noreply@blogger.comtag:blogger.com,1999:blog-7565989862281145057.post-62977355131109352322009-04-20T20:52:00.000-07:002009-04-20T20:52:00.000-07:00An easier way would be to do this:
editText.setFil...An easier way would be to do this:<br />editText.setFilters(new InputFilter[]<br />{ <br />new InputFilter.LengthFilter(maxLength) });Unknownhttps://www.blogger.com/profile/12808297238994878460noreply@blogger.com