共用方式為


RemoteViews.SetViewLayoutMarginAttr(Int32, Int32, Int32) 方法

定義

相當於通話 MarginLayoutParams#setMarginEnd

[Android.Runtime.Register("setViewLayoutMarginAttr", "(III)V", "GetSetViewLayoutMarginAttr_IIIHandler", ApiSince=31)]
public virtual void SetViewLayoutMarginAttr (int viewId, int type, int attr);
[<Android.Runtime.Register("setViewLayoutMarginAttr", "(III)V", "GetSetViewLayoutMarginAttr_IIIHandler", ApiSince=31)>]
abstract member SetViewLayoutMarginAttr : int * int * int -> unit
override this.SetViewLayoutMarginAttr : int * int * int -> unit

參數

viewId
Int32

要變更之檢視的標識碼

type
Int32

要設定的邊界,例如 #MARGIN_END

attr
Int32

要套用至邊界的維度屬性,或0以清除邊界。

屬性

備註

android.widget.RemoteViews.setViewLayoutMarginAttr(int, int, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於