TextView.SetCompoundDrawablesRelative Méthode

Définition

Définit les dessinables (le cas échéant) à afficher au début, au-dessus, à la fin du texte et sous le texte.

[Android.Runtime.Register("setCompoundDrawablesRelative", "(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V", "GetSetCompoundDrawablesRelative_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Handler")]
public virtual void SetCompoundDrawablesRelative (Android.Graphics.Drawables.Drawable? start, Android.Graphics.Drawables.Drawable? top, Android.Graphics.Drawables.Drawable? end, Android.Graphics.Drawables.Drawable? bottom);
[<Android.Runtime.Register("setCompoundDrawablesRelative", "(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V", "GetSetCompoundDrawablesRelative_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Handler")>]
abstract member SetCompoundDrawablesRelative : Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable -> unit
override this.SetCompoundDrawablesRelative : Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable -> unit

Paramètres

start
Drawable
top
Drawable
end
Drawable
bottom
Drawable
Attributs

Remarques

Définit les dessinables (le cas échéant) à afficher au début, au-dessus, à la fin du texte et sous le texte. Utilisez null si vous ne souhaitez pas d’un dessinable là-bas. Les tiroirs doivent déjà avoir appelé Drawable#setBounds .

L’appel de cette méthode remplace les dessinables précédemment définis à l’aide #setCompoundDrawables ou les méthodes associées.

Documentation Java pour android.widget.TextView.setCompoundDrawablesRelative(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable).

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

S’applique à