I m 采用用户要求测量的表格。 根据当地情况,用户将进入计量器或脚/ches。
简言之,我目前的执行要求只用脚使用精子。 例如,2.5英尺等于2'6',这从我的理解中相当误导。 I m not in a , so it wasn t clear to me at time.
我看到一些可能性和问题:
- Show two
EditText
fields, one for feet one for inches. This makes layout design difficult since I m also allowing the user to enter meters, which will only need oneEditText
. A possibility is to make one hidden at run time. - Using one
EditText
, I can t seem to find anandroid:inputType
that allows for number input plus double primes and primes, or double quotes and apostrophes. e.g. 3′ 5″ or 3 5". It means theEditText
would have to use the standard alphabet keyboard which makes it slightly hindering to the user. - Also, with one
EditText
, I am happy to (and already doing so for just a single entry with meters and feet without inches), to suffix theEditText
after the user loses focus, and remove the suffix when being focused again. This does make the code more complex for a simple input field.
是否还有其他选择?