TextView.SetCompoundDrawablesRelativeWithIntrinsicBounds 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SetCompoundDrawablesRelativeWithIntrinsicBounds(Drawable, Drawable, Drawable, Drawable) |
设置可绘制 ((如果有任何) 显示在文本的开头、上方、末尾和下方)。 |
SetCompoundDrawablesRelativeWithIntrinsicBounds(Int32, Int32, Int32, Int32) |
设置可绘制 ((如果有任何) 显示在文本的开头、上方、末尾和下方)。 |
SetCompoundDrawablesRelativeWithIntrinsicBounds(Drawable, Drawable, Drawable, Drawable)
设置可绘制 ((如果有任何) 显示在文本的开头、上方、末尾和下方)。
[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
参数
- start
- Drawable
启动 Drawable 的资源标识符。
- top
- Drawable
顶部 Drawable 的资源标识符。
- end
- Drawable
End Drawable 的资源标识符。
- bottom
- Drawable
底部 Drawable 的资源标识符。
- 属性
注解
设置可绘制 ((如果有任何) 显示在文本的开头、上方、末尾和下方)。 如果不想在其中使用 Drawable,请使用 null
。 可绘制对象的边界将设置为其固有边界。
调用此方法将覆盖以前使用 #setCompoundDrawables
或相关方法设置的任何 Drawables。
此页面的部分内容是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的术语使用。
适用于
SetCompoundDrawablesRelativeWithIntrinsicBounds(Int32, Int32, Int32, Int32)
设置可绘制 ((如果有任何) 显示在文本的开头、上方、末尾和下方)。
[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
参数
- start
- Int32
启动 Drawable 的资源标识符。
- top
- Int32
顶部 Drawable 的资源标识符。
- end
- Int32
End Drawable 的资源标识符。
- bottom
- Int32
底部 Drawable 的资源标识符。
- 属性
注解
设置可绘制 ((如果有任何) 显示在文本的开头、上方、末尾和下方)。 如果不想在其中使用 Drawable,请使用 0。 可绘制对象的边界将设置为其固有边界。
调用此方法将覆盖以前使用 #setCompoundDrawables
或相关方法设置的任何 Drawables。
此页面的部分内容是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的术语使用。