言語

RemoteViews.SetViewLayoutWidth(Int32, Single, Int32) メソッド

定義

android.view.ViewGroup.LayoutParams#width設定と同じですが、ディメンション単位で値を指定できる点が異なります。

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

パラメーター

viewId
Int32

int

width
Single

指定された単位でのビューの幅

units
Int32

値の単位の型 (例: TypedValue#COMPLEX_UNIT_DIP

属性

注釈

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象