Answer the question
In order to leave comments, you need to log in
How to extract number from Spinner?
Good day!
The next point is of interest - how can you equate a certain Spinner string to a certain number. Perhaps the question was asked a little incorrectly...
There are Roman numerals I II III IV getting them as a string from the Spinner is not a problem. How to equate (convert) them to type int (1,2,3,4) respectively?
As a last resort... I think you can get the numeric part with a regular expression (or google guava), only then change the Roman numerals to Arabic... How would you do it?
The goal is to get a value from the spinner, bind a certain number to them, in order to further calculate according to the formula...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question