言語

TextView.SetCompoundDrawables(Drawable, Drawable, Drawable, Drawable) メソッド

定義

テキストの左側、上、右、および下に表示する Drawable を設定します (存在する場合)。

[Android.Runtime.Register("setCompoundDrawables", "(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V", "GetSetCompoundDrawables_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Handler")]
public virtual void SetCompoundDrawables(Android.Graphics.Drawables.Drawable? left, Android.Graphics.Drawables.Drawable? top, Android.Graphics.Drawables.Drawable? right, Android.Graphics.Drawables.Drawable? bottom);
[<Android.Runtime.Register("setCompoundDrawables", "(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V", "GetSetCompoundDrawables_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Handler")>]
abstract member SetCompoundDrawables : Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable -> unit
override this.SetCompoundDrawables : Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable -> unit

パラメーター

left
Drawable

Drawable : この値は null である可能性があります。

top
Drawable

Drawable : この値は null である可能性があります。

right
Drawable

Drawable : この値は null である可能性があります。

bottom
Drawable

Drawable : この値は null である可能性があります。

属性

注釈

テキストの左側、上、右、および下に表示する Drawable を設定します (存在する場合)。 drawable が必要ない場合は、 null を使用します。 Drawables は既に呼び出 Drawable#setBounds 必要があります。

このメソッドを呼び出すと、 #setCompoundDrawablesRelative または関連するメソッドを使用して以前に設定されたすべての Drawable が上書きされます。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象