posted 14 years ago
Is it possible to validate each of my comma separated values in the layout.xml file? I know I can do it in Activity class but I was hoping if I could somehow enforce it in the xml file. I have an EditText box and I want input from user which is an array of double separated by commas in the text box. Here is the current code.
I don't want users to enter "1.1.1" because that's not a number. However "23.5,-5,100" is perfectly acceptable.
Thanks
Imad