語言

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

傳回

與該可繪圖相符的 ConstantState。

屬性

備註

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

另請參閱