TextView.SetCompoundDrawablesRelativeWithIntrinsicBounds Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.
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.