Formatter.FormatShortFileSize(Context, Int64) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
例如 #formatFileSize,但尝试生成较短的数字(显示更少的精度位数)。
[Android.Runtime.Register("formatShortFileSize", "(Landroid/content/Context;J)Ljava/lang/String;", "")]
public static string? FormatShortFileSize(Android.Content.Context? context, long sizeBytes);
[<Android.Runtime.Register("formatShortFileSize", "(Landroid/content/Context;J)Ljava/lang/String;", "")>]
static member FormatShortFileSize : Android.Content.Context * int64 -> string
参数
- context
- Context
用于加载本地化单元的上下文。 此值可能为 null。
- sizeBytes
- Int64
要设置格式的大小值(以字节为单位)。
返回
带数字的格式字符串。
- 特性
注解
例如 #formatFileSize,但尝试生成较短的数字(显示更少的精度位数)。
适用于 . 的 android.text.format.Formatter.formatShortFileSize(android.content.Context, long)Java 文档
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。