Langue

View.BackgroundTintList Propriété

Définition

Retourne la teinte appliquée au dessin d’arrière-plan, si elle est spécifiée. ; Applique une teinte à l’arrière-plan dessinable.

public virtual Android.Content.Res.ColorStateList? BackgroundTintList { [Android.Runtime.Register("getBackgroundTintList", "()Landroid/content/res/ColorStateList;", "GetGetBackgroundTintListHandler")] get; [Android.Runtime.Register("setBackgroundTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetBackgroundTintList_Landroid_content_res_ColorStateList_Handler")] set; }
[<get: Android.Runtime.Register("getBackgroundTintList", "()Landroid/content/res/ColorStateList;", "GetGetBackgroundTintListHandler")>]
[<set: Android.Runtime.Register("setBackgroundTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetBackgroundTintList_Landroid_content_res_ColorStateList_Handler")>]
member this.BackgroundTintList : Android.Content.Res.ColorStateList with get, set

Valeur de propriété

teinte appliquée au dessin d’arrière-plan

Attributs

Remarques

Documentation getter de propriété :

Retourne la teinte appliquée au dessin d’arrière-plan, si elle est spécifiée.

Java documentation pour android.view.View.getBackgroundTintList().

Documentation du jeu de propriétés :

Applique une teinte à l’arrière-plan dessinable. Ne modifie pas le mode de teinte actuel, qui est BlendMode#SRC_IN par défaut.

Les appels suivants pour #setBackground(Drawable) muter automatiquement le dessinable et appliqueront la teinte et le mode teinte spécifiés à l’aide Drawable#setTintList(ColorStateList)de .

Java documentation pour android.view.View.setBackgroundTintList(android.content.res.ColorStateList).

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 à

Voir aussi