Share via


RemoteViews.SetViewLayoutHeightAttr(Int32, Int32) Method

Definition

Equivalent to setting android.view.ViewGroup.LayoutParams#height with the value of the given attribute in the current theme.

[Android.Runtime.Register("setViewLayoutHeightAttr", "(II)V", "GetSetViewLayoutHeightAttr_IIHandler", ApiSince=31)]
public virtual void SetViewLayoutHeightAttr (int viewId, int heightAttr);
[<Android.Runtime.Register("setViewLayoutHeightAttr", "(II)V", "GetSetViewLayoutHeightAttr_IIHandler", ApiSince=31)>]
abstract member SetViewLayoutHeightAttr : int * int -> unit
override this.SetViewLayoutHeightAttr : int * int -> unit

Parameters

viewId
Int32
heightAttr
Int32

a dimen attribute to read the height from.

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setViewLayoutHeightAttr(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to