語言

Configuration.SmallestScreenWidthDp 屬性

定義

應用程式在正常運作中能看到的最小螢幕尺寸。

[Android.Runtime.Register("smallestScreenWidthDp")]
public int SmallestScreenWidthDp { get; set; }
[<Android.Runtime.Register("smallestScreenWidthDp")>]
member this.SmallestScreenWidthDp : int with get, set

屬性值

應用程式在正常操作中會遇到的最小螢幕寬度,以密度無關像素計算,或未指定時為 0。

屬性

備註

應用程式在正常運作中能看到的最小螢幕尺寸。 對應最小 寬度 的資源限定符。 這是直向與橫向取向中#screenWidthDp#screenHeightDp最小的值。 若未指定寬度,則預設為 #SMALLEST_SCREEN_WIDTH_DP_UNDEFINED 。

Java 文件 android.content.res.Configuration.smallestScreenWidthDp。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於