RemoteViews.SetViewLayoutMarginAttr(Int32, Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
等同於呼叫 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 來清除邊界。
- 屬性
備註
Java 文件 android.widget.RemoteViews.setViewLayoutMarginAttr(int, int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。