OK. Is there a description that says what kind of letters, number etc. you get using one InputType. For example InputType.TYPE_CLASS_NUMBER; gives you 1,2,3,4 etc. or do I need to test each of them to see what I get?
I've seen this link: http://developer.android.com/reference/android/text/InputType.html > On Sat, Sep 8, 2012 at 9:01 AM, powder366 wrote: > > How can I add colon(:) to the soft keyboard with the input type > > InputType.TYPE_CLASS_NUMBER Currently I have the following code: > > > > NumberKeyListener keyListener = new NumberKeyListener() { > > public int getInputType() { > > return InputType.TYPE_CLASS_NUMBER; > > } > > > > @Override > > protected char[] getAcceptedChars() { > > return new char[] { '0', '1', '2', '3', '4', '5', '6', '7', > '8', '9', '.', ':', '-', ',' }; > > } > > }; > > Add the following line at the end to make example complete: mytext.setKeyListener(keyListener); > > But I also like the colon(:) on the number keyboard? > > > -- 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

