Hi folks, I am with a problem with edittext mask. I need to allow the user to enter the information, where the tree first fields must to be letters and the following four fields must to be numbers. The mask is like this: "AAA-0000".
I tried to solve this checking the number of the field that the user is typing, if it is lower than 4, I set the InputType to TYPE_CLASS_NUMBER, if the number field is equal or higher 4, I set the InputType to TYPE_CLASS_TEXT. In portrait mode this works fine, but in landscape mode, when the android hide the edittext field, when the mask changes from TYPE_CLASS_NUMBER to TYPE_CLASS_TEXT, the edittext hide the tree numbers that the user typed and allow him to type the four letters. When he clicks enter the finale text is fine, but I am afraid that a dummy user will not understand what happened when the edittext hide the numbers that he typed. There is a better way to do this? Regards, Rogerio -- 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