共用方式為


Formatter.FormatShortFileSize(Context, Int64) 方法

定義

和一樣 #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
sizeBytes
Int64

傳回

屬性

備註

和一樣 #formatFileSize,但嘗試產生較短的數字(顯示較少的有效位數)。

android.text.format.Formatter.formatShortFileSize(android.content.Context, long)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於