Notification.ProgressStyle.SetStyledByProgress(Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
顯示區段與積分是否會根據落後或領先進度進行不同格式。
[Android.Runtime.Register("setStyledByProgress", "(Z)Landroid/app/Notification$ProgressStyle;", "GetSetStyledByProgress_ZHandler", ApiSince=36)]
public virtual Android.App.Notification.ProgressStyle SetStyledByProgress(bool enabled);
[<Android.Runtime.Register("setStyledByProgress", "(Z)Landroid/app/Notification$ProgressStyle;", "GetSetStyledByProgress_ZHandler", ApiSince=36)>]
abstract member SetStyledByProgress : bool -> Android.App.Notification.ProgressStyle
override this.SetStyledByProgress : bool -> Android.App.Notification.ProgressStyle
參數
- enabled
- Boolean
boolean
傳回
這個 Android.App.Notification.ProgressStyle 實例,允許呼叫串接。
- 屬性
備註
顯示區段與積分是否會根據落後或領先進度進行不同格式。 當情況成立時,出現在當前進度前面的路段會呈現稍有不同的外觀,以表示該路段是進度條中未被「填滿」的一部分。 若錯誤,所有區段都會顯示填滿的外觀,應用程式需使用 setProgressTrackerIcon 或區段顏色來讓使用者清楚掌握當前進度。 預設值為真。
本頁內容與程式碼範例受內容授權條款所規範。 Java 和 OpenJDK 是 Oracle 和/或其關係企業的商標或注冊商標。
最後更新於 2026-08-03 UTC。
Android 參考資料。android.app.Notification.ProgressStyle.setStyledByProgress
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。