Sarath Kamisetty wrote:
> I would like display EditText box but restrict the input to ten
> characters/digits. If user continues typing more than 10 digits I
> don't want them to be echoed at all. Any idea how to achieve this ? I
> see that the width can be specified in terms of pixels and other stuff
> but not in terms of characters.

How about android:maxLength?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to