语言

Drawable.GetConstantState 方法

定义

返回保存 ConstantState 此 Drawable 共享状态的实例。

[Android.Runtime.Register("getConstantState", "()Landroid/graphics/drawable/Drawable$ConstantState;", "GetGetConstantStateHandler")]
public virtual Android.Graphics.Drawables.Drawable.ConstantState? GetConstantState();
[<Android.Runtime.Register("getConstantState", "()Landroid/graphics/drawable/Drawable$ConstantState;", "GetGetConstantStateHandler")>]
abstract member GetConstantState : unit -> Android.Graphics.Drawables.Drawable.ConstantState
override this.GetConstantState : unit -> Android.Graphics.Drawables.Drawable.ConstantState

返回

与该 Drawable 关联的 ConstantState。

特性

注解

Java文档android.graphics.drawable.Drawable.getConstantState()。

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

适用于

另请参阅