Sdílet prostřednictvím


RemoteViews.SetViewLayoutHeight(Int32, Single, Int32) Method

Definition

Equivalent to setting android.view.ViewGroup.LayoutParams#height except that you may provide the value in any dimension units.

[Android.Runtime.Register("setViewLayoutHeight", "(IFI)V", "GetSetViewLayoutHeight_IFIHandler", ApiSince=31)]
public virtual void SetViewLayoutHeight (int viewId, float height, int units);
[<Android.Runtime.Register("setViewLayoutHeight", "(IFI)V", "GetSetViewLayoutHeight_IFIHandler", ApiSince=31)>]
abstract member SetViewLayoutHeight : int * single * int -> unit
override this.SetViewLayoutHeight : int * single * int -> unit

Parameters

viewId
Int32
height
Single

height of the view in the given units

units
Int32

The unit type of the value e.g. TypedValue#COMPLEX_UNIT_DIP

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setViewLayoutHeight(int, float, 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