aspose file tools*
The moose likes Android and the fly likes Validating Comma Separated Values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Validating Comma Separated Values" Watch "Validating Comma Separated Values" New topic
Author

Validating Comma Separated Values

Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 238
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
Kudret Serin
Ranch Hand

Joined: Aug 02, 2005
Posts: 167

did you try this?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validating Comma Separated Values
 
Similar Threads
regarding layout
list view problem
Fields hidden due to keyboard
when i change android:orientation to horizontal it shows blank screen
Keyboard events for EditText not reaching my event handler.