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
要更改的视图的 ID
- type
- Int32
要设置的边距,例如 #MARGIN_END
- attr
- Int32
要应用于边距的维度属性,或 0 以清除边距。
- 属性
注解
适用于 . 的 android.widget.RemoteViews.setViewLayoutMarginAttr(int, int, int)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。