View.SetBackgroundDrawable(Drawable) 方法

定义

注意

deprecated

此成员已弃用。

[Android.Runtime.Register("setBackgroundDrawable", "(Landroid/graphics/drawable/Drawable;)V", "GetSetBackgroundDrawable_Landroid_graphics_drawable_Drawable_Handler")]
[System.Obsolete("deprecated")]
public virtual void SetBackgroundDrawable(Android.Graphics.Drawables.Drawable? background);
[<Android.Runtime.Register("setBackgroundDrawable", "(Landroid/graphics/drawable/Drawable;)V", "GetSetBackgroundDrawable_Landroid_graphics_drawable_Drawable_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetBackgroundDrawable : Android.Graphics.Drawables.Drawable -> unit
override this.SetBackgroundDrawable : Android.Graphics.Drawables.Drawable -> unit

参数

background
Drawable
属性

注解

此成员已弃用。 请改用 #setBackground(Drawable)

Java文档android.view.View.setBackgroundDrawable(android.graphics.drawable.Drawable)

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

适用于