You're probably looking to extend BaseKeyListener or one of its
subclasses.  This is how the Phone app only allows numbers to be
dialed, and also handles translating letters to numbers.

Once you've built a listener that works for your needs, assign it
using EditText.setKeyListener().

j

On Sat, Aug 15, 2009 at 7:06 AM, jgostylo<[email protected]> wrote:
>
> I have been searching through the InputFilter documentation trying to
> find a good way to do what I want.
>
> I want to create an edittext that only allows alpha-numeric
> characters.  I don't think any of the InputText pre-made filters do
> this.  I was looking at creating my own filter using
> InputFilter.filter, but the documentation seems a little sparse
> explaining the method's parameters and what it is looking for.  This
> is probably due to my lack of experience with the topic.
>
> Searching the internet, it does not seem like anyone else is trying to
> do this so maybe I am not even going about this the correct way.
>
> Any help would be appreciated.
> >
>



-- 
Jeff Sharkey
[email protected]

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

Reply via email to