BitmapDrawable.GetConstantState 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
[Android.Runtime.Register("getConstantState", "()Landroid/graphics/drawable/Drawable$ConstantState;", "")]
public override sealed Android.Graphics.Drawables.Drawable.ConstantState? GetConstantState();
[<Android.Runtime.Register("getConstantState", "()Landroid/graphics/drawable/Drawable$ConstantState;", "")>]
override this.GetConstantState : unit -> Android.Graphics.Drawables.Drawable.ConstantState
返回
与该 Drawable 关联的 ConstantState。 此值可能为 null。
- 特性
注解
返回一个 ConstantState 实例,该实例保存此 Drawable 的共享状态。
Android 参考。android.graphics.drawable.BitmapDrawable.getConstantState
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。