語言

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)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於