View.SetBackgroundDrawable(Drawable) Méthode

Définition

Attention

deprecated

Définit le dessinable utilisé comme arrière-plan de cette vue.

[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

Paramètres

background
Drawable

Valeur Android.Graphics.Drawables.Drawable utilisée pour l’arrière-plan.

Attributs

Remarques

Ce membre est déconseillé. utiliser #setBackground(Drawable) à la place

Java documentation pour android.view.View.setBackgroundDrawable(android.graphics.drawable.Drawable).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à