Sdílet prostřednictvím


TextView.SetCompoundDrawablesRelativeWithIntrinsicBounds Method

Definition

Overloads

SetCompoundDrawablesRelativeWithIntrinsicBounds(Drawable, Drawable, Drawable, Drawable)

Sets the Drawables (if any) to appear to the start of, above, to the end of, and below the text.

SetCompoundDrawablesRelativeWithIntrinsicBounds(Int32, Int32, Int32, Int32)

Sets the Drawables (if any) to appear to the start of, above, to the end of, and below the text.

SetCompoundDrawablesRelativeWithIntrinsicBounds(Drawable, Drawable, Drawable, Drawable)

Sets the Drawables (if any) to appear to the start of, above, to the end of, and below the text.

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

Parameters

start
Drawable

Resource identifier of the start Drawable.

top
Drawable

Resource identifier of the top Drawable.

end
Drawable

Resource identifier of the end Drawable.

bottom
Drawable

Resource identifier of the bottom Drawable.

Attributes

Remarks

Sets the Drawables (if any) to appear to the start of, above, to the end of, and below the text. Use null if you do not want a Drawable there. The Drawables' bounds will be set to their intrinsic bounds.

Calling this method will overwrite any Drawables previously set using #setCompoundDrawables or related methods.

Java documentation for android.widget.TextView.setCompoundDrawablesRelativeWithIntrinsicBounds(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetCompoundDrawablesRelativeWithIntrinsicBounds(Int32, Int32, Int32, Int32)

Sets the Drawables (if any) to appear to the start of, above, to the end of, and below the text.

[Android.Runtime.Register("setCompoundDrawablesRelativeWithIntrinsicBounds", "(IIII)V", "GetSetCompoundDrawablesRelativeWithIntrinsicBounds_IIIIHandler")]
public virtual void SetCompoundDrawablesRelativeWithIntrinsicBounds (int start, int top, int end, int bottom);
[<Android.Runtime.Register("setCompoundDrawablesRelativeWithIntrinsicBounds", "(IIII)V", "GetSetCompoundDrawablesRelativeWithIntrinsicBounds_IIIIHandler")>]
abstract member SetCompoundDrawablesRelativeWithIntrinsicBounds : int * int * int * int -> unit
override this.SetCompoundDrawablesRelativeWithIntrinsicBounds : int * int * int * int -> unit

Parameters

start
Int32

Resource identifier of the start Drawable.

top
Int32

Resource identifier of the top Drawable.

end
Int32

Resource identifier of the end Drawable.

bottom
Int32

Resource identifier of the bottom Drawable.

Attributes

Remarks

Sets the Drawables (if any) to appear to the start of, above, to the end of, and below the text. Use 0 if you do not want a Drawable there. The Drawables' bounds will be set to their intrinsic bounds.

Calling this method will overwrite any Drawables previously set using #setCompoundDrawables or related methods.

Java documentation for android.widget.TextView.setCompoundDrawablesRelativeWithIntrinsicBounds(int, int, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to