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以清除邊界。
- 屬性
備註
的 android.widget.RemoteViews.setViewLayoutMarginAttr(int, int, int)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。