语言

RemoteViews.SetTextViewCompoundDrawablesRelative 方法

定义

等效于调用 TextView#setCompoundDrawablesRelativeWithIntrinsicBounds(int, int, int, int)。

[Android.Runtime.Register("setTextViewCompoundDrawablesRelative", "(IIIII)V", "GetSetTextViewCompoundDrawablesRelative_IIIIIHandler")]
public virtual void SetTextViewCompoundDrawablesRelative(int viewId, int start, int top, int end, int bottom);
[<Android.Runtime.Register("setTextViewCompoundDrawablesRelative", "(IIIII)V", "GetSetTextViewCompoundDrawablesRelative_IIIIIHandler")>]
abstract member SetTextViewCompoundDrawablesRelative : int * int * int * int * int -> unit
override this.SetTextViewCompoundDrawablesRelative : int * int * int * int * int -> unit

参数

viewId
Int32

应更改其文本的视图的 ID

start
Int32

在文本之前放置的可绘制对象的 ID(相对于布局方向),或 0

top
Int32

要放置在文本上方的可绘制对象的 ID,或 0

end
Int32

要放置在文本之后的可绘制对象的 ID,或 0

bottom
Int32

要放置在文本下方的可绘制对象的 ID,或 0

特性

注解

Java文档android.widget.RemoteViews.setTextViewCompoundDrawablesRelative(int, int, int, int, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于