FrameMetrics.FirstDrawFrame 字段

定义

注意

This constant will be removed in the future version. Use Android.Views.FrameMetricsId enum directly instead of this field.

布尔值的指标标识符,确定此帧是否是第一个在新窗口布局中绘制的。

[Android.Runtime.Register("FIRST_DRAW_FRAME", ApiSince=24)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.FrameMetricsId enum directly instead of this field.", true)]
public const Android.Views.FrameMetricsId FirstDrawFrame = 9;
[<Android.Runtime.Register("FIRST_DRAW_FRAME", ApiSince=24)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.FrameMetricsId enum directly instead of this field.", true)>]
val mutable FirstDrawFrame : Android.Views.FrameMetricsId

字段值

Value = 9
属性

注解

布尔值的指标标识符,确定此帧是否是第一个在新窗口布局中绘制的。

#getMetric(int) 将返回 0 表示 false,1 表示 true。

第一个绘制帧应该很慢,通常应免除显示简点计算,因为它们不会导致动画中的跳过,通常由窗口动画或其他技巧隐藏。

适用于 . 的 android.view.FrameMetrics.FIRST_DRAW_FRAMEJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于