语言

WindowInsetsAnimation.Alpha 属性

定义

检索正在创建动画的窗口的半透明性。 - 或 - 设置正在创建动画的窗口的半透明性。

public float Alpha { [Android.Runtime.Register("getAlpha", "()F", "", ApiSince=30)] get; [Android.Runtime.Register("setAlpha", "(F)V", "", ApiSince=30)] set; }
[<get: Android.Runtime.Register("getAlpha", "()F", "", ApiSince=30)>]
[<set: Android.Runtime.Register("setAlpha", "(F)V", "", ApiSince=30)>]
member this.Alpha : single with get, set

属性值

导致类型 WindowInsets.Type内嵌的窗口的 Alpha。

特性

注解

属性 getter 文档:

检索正在创建动画的窗口的半透明性。

Java文档android.view.WindowInsetsAnimation.getAlpha()。

属性 setter 文档:

设置正在动画处理的窗口的半透明性。

注意:这应该仅用于测试,因为系统填充应用程序的 alpha 或传入 WindowInsetsAnimationController#setInsetsAndAlpha(Insets, float, float) 的 alpha 正在使用。

Java文档android.view.WindowInsetsAnimation.setAlpha(float)。

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

适用于