Android的:如何让用户prefered单位? (公制(米)或英制(英里))? [英] Android: how to get the user prefered units ? (metric (meters) or imperial (miles))?

查看:112
本文介绍了Android的:如何让用户prefered单位? (公制(米)或英制(英里))?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道什么是英里和米之间的用户prefered单位。看来,语言环境类不允许的。谢谢!

I would like to know what are the user prefered units between miles and meters. It seems that the "Locale" class doesn't allow that. Thanks !!

推荐答案

我不认为有必要一个正确的答案,为所有区域的公制/英制的问题。

I don't think there's necessarily a correct answer to the Metric/Imperial question for all locales.

例如,在英国,我们一般使用里程数大的距离就像一个车程,英尺和英寸为人们的高度,但可以用米来描述一个房间的尺寸。

For example, in the UK we generally use miles for large distances like a car journey, feet and inches for people's height but may use meters to describe the dimensions of a room.

我们几乎总是使用升测量液体的体积,除了啤酒,有时甚至牛奶里面仍然可以在品脱出售。

We almost always use litres for measuring liquid volume except for beer and sometimes milk which can still be sold in pints.

千克通常是preferred到磅,盎司,但大多数食谱会列出,因为有些人仍然有其使用后者的规模。

Kilograms are usually preferred to pounds and ounces but most recipe books will list both since some people still have scales which use the latter.

我想你将不得不做一些研究,以找出哪些国家使用的规模为你所感兴趣的测量(当然,给用户选择手动选择一个或另一个。)

I think you will have to do some research to find out which countries use which scale for what you're interested in measuring (and of course, give the user the option to select one or the other manually.)

这篇关于Android的:如何让用户prefered单位? (公制(米)或英制(英里))?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆