I'm looking for a way to get three float values from one EditText.I've Looked of the developers page but i couldnt find anything that best fit my need.I would like to get three floats a x,y,z from one entry of EditText?
Thank you guys so much on the replys o this Question im really greatfull. Im limited to the time on my computer right now but ill let you know which answer work for me and ill post my code too.
?
You should either create several EditText views, or then parse the contents of the EditText
As per Java parsing a string of floats to a float array?
If they are separated by whitespaces
otherwise use
Scanner.setDelimiter
to set delimiter(s) other than whitespaces.Reconsider your design to use three EditTexts instead. On mobile phones it's a pain to enter symbols like comma
Use 3 EditText widgets if you want the user to input 3 separate values, which will be parsed as 3 separate variables.