Hi, Thanks for your answer and sorry about the late reply. I have set the xml attribute "android:inputMethod="android.text.method.DateInputMethod"". It seems that it prevents input of any other characters except numeric and some special chars, but it does not check that the entire input is valid (as date). How can such validity check be done?
On Apr 26, 11:02 pm, "John P." <[EMAIL PROTECTED]> wrote: > You can set various input types by using predefined XML attributes, or > making a custom one. The predefined types may fulfill your needs, > specifically android:digits. As for the date, I couldn't find the XML > version, but you could do is programatically by > myEditText.setInputMethod(myInputMethod) where myInputMethod is an > instance of DateInputMethod. > > On Apr 24, 8:08 pm,shaimailit<[EMAIL PROTECTED]> wrote: > > > > > Hi, > > Some of my input fields are of specific data types. > > Therefore, I want to add to my EditText controls implementation of > > mask (the mask will control the input limitiations). > > Masks for example: > > Decimal - N.N (Numeric is not good enought, because it doesn't allow > > decimal point). > > Date - DD/MM/YYYY > > > How can I acheive this? > > > Thanks, > > Shai- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

