I am developing an app to get user information like weight and height.
In according to Locale, the app show two or three EditText:
- three (pounds, feet, inches) if the Locale is US
- two (kilograms, centimeters) in the other cases (France, Italy, Spain, etc)
In both cases, I can get an int value or a String value from each EditText.
I would like to create a Java class that allows me to switch from imperial to metric system (or vice versa) via the two (or three) values.