View.SystemUiVisibility 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This property has an incorrect enumeration type. Use the SystemUiFlags property instead.
回傳此視圖最後 #setSystemUiVisibility(int) 請求的畫面。
[System.Obsolete("This property has an incorrect enumeration type. Use the SystemUiFlags property instead.")]
public virtual Android.Views.StatusBarVisibility SystemUiVisibility { [Android.Runtime.Register("getSystemUiVisibility", "()I", "GetGetSystemUiVisibilityHandler")] get; [Android.Runtime.Register("setSystemUiVisibility", "(I)V", "GetSetSystemUiVisibility_IHandler")] set; }
[<System.Obsolete("This property has an incorrect enumeration type. Use the SystemUiFlags property instead.")>]
[<get: Android.Runtime.Register("getSystemUiVisibility", "()I", "GetGetSystemUiVisibilityHandler")>]
[<set: Android.Runtime.Register("setSystemUiVisibility", "(I)V", "GetSetSystemUiVisibility_IHandler")>]
member this.SystemUiVisibility : Android.Views.StatusBarVisibility with get, set
屬性值
標記 、 、 、 #SYSTEM_UI_FLAG_LOW_PROFILE、 、 #SYSTEM_UI_FLAG_HIDE_NAVIGATION#SYSTEM_UI_FLAG_FULLSCREEN、 和 #SYSTEM_UI_FLAG_LAYOUT_STABLE的位元或 #SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION。 #SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN#SYSTEM_UI_FLAG_IMMERSIVE#SYSTEM_UI_FLAG_IMMERSIVE_STICKY
- 屬性
備註
財產取得者文件:
回傳此視圖最後 #setSystemUiVisibility(int) 請求的畫面。
此會員已被棄用。 SystemUiVisibility 旗標已被棄用。 請改用 WindowInsetsController。
Java 文件 android.view.View.getSystemUiVisibility()。
屬性設定文件:
請求更改狀態列或其他螢幕/視窗裝飾的可見性。
此方法用於將裝置上的使用者介面置於暫時模式,使使用者的注意力更多集中在應用程式內容上,透過調暗或隱藏周遭系統功能。 這通常與 搭配使用 Window#FEATURE_ACTION_BAR_OVERLAY Window.FEATURE_ACTION_BAR_OVERLAY,允許應用程式內容置於動作列後方(並搭配其他系統功能),使隱藏與顯示之間能順利過渡。
系統介面可見性的兩個代表性應用是實作內容瀏覽應用程式(如雜誌閱讀器)與影片播放應用程式。
第一段程式碼展示了內容瀏覽應用程式中檢視的典型實作。 在此實作中,應用程式進入內容導向模式,隱藏狀態列與動作列,並將導航元素置於熄燈模式。 使用者在此模式下即可與內容互動。 這類應用程式應該能讓使用者輕鬆切換出模式(例如查看狀態列資訊或存取通知)。 在這裡的實作中,這只是透過點擊內容來完成。
{
此會員已被棄用。 SystemUiVisibility 旗標已被棄用。 請改用 WindowInsetsController。
Java 文件 android.view.View.setSystemUiVisibility(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。