語言

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

背景使用的 Android.Graphics.Drawable.Drawable 值。

屬性

備註

此會員已被棄用。 請改用 #setBackground(Drawable)

android.view.View.setBackgroundDrawable(android.graphics.drawable.Drawable)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於