语言

Notification.ProgressStyle.SetStyledByProgress(Boolean) 方法

定义

指示是否根据段和点是落后还是领先于当前进度,以不同的方式设置样式。

[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 实例允许链接调用。

特性

注解

指示是否根据段和点是落后还是领先于当前进度,以不同的方式设置样式。 如果为 true,在当前进度之前显示的段的外观将略有不同,以指示它是未“填充”进度栏的一部分。 如果为 false,则会为所有段提供填充的外观,并且应用负责使用 setProgressTrackerIcon 或段颜色向用户清除当前进度。 默认值为 true。

Android 参考。android.app.Notification.ProgressStyle.setStyledByProgress

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于