Language

WindowInsets.Inset メソッド

定義

オーバーロード

名前 説明
Inset(Insets)

指定された方向に挿入されたこのインスタンスのコピーを返します。

Inset(Int32, Int32, Int32, Int32)

指定された方向に挿入されたこのインスタンスのコピーを返します。

Inset(Insets)

指定された方向に挿入されたこのインスタンスのコピーを返します。

[Android.Runtime.Register("inset", "(Landroid/graphics/Insets;)Landroid/view/WindowInsets;", "", ApiSince=30)]
public Android.Views.WindowInsets Inset(Android.Graphics.Insets insets);
[<Android.Runtime.Register("inset", "(Landroid/graphics/Insets;)Landroid/view/WindowInsets;", "", ApiSince=30)>]
member this.Inset : Android.Graphics.Insets -> Android.Views.WindowInsets

パラメーター

insets
Insets

すべての側面から削除するインセットの量。

返品

inset insets

属性

注釈

指定された方向に挿入されたこのインスタンスのコピーを返します。

これは、ウィンドウの現在の領域よりも小さい領域にインセットをディスパッチすることを目的としています。

例:

childView.dispatchApplyWindowInsets(insets.inset(childMargins));

android.view.WindowInsets.inset(android.graphics.Insets)の Java ドキュメント。

このページの一部は、Androidオープンソースプロジェクトによって作成および共有された作業に基づく変更でありCreative Commons 2.5属性ライセンスに記載されている条件に従って使用されます。

適用対象

Inset(Int32, Int32, Int32, Int32)

指定された方向に挿入されたこのインスタンスのコピーを返します。

[Android.Runtime.Register("inset", "(IIII)Landroid/view/WindowInsets;", "", ApiSince=29)]
public Android.Views.WindowInsets Inset(int left, int top, int right, int bottom);
[<Android.Runtime.Register("inset", "(IIII)Landroid/view/WindowInsets;", "", ApiSince=29)>]
member this.Inset : int * int * int * int -> Android.Views.WindowInsets

パラメーター

left
Int32

左から削除するインセットの量。 負であってはなりません。

top
Int32

上から削除するインセットの量。 負であってはなりません。

right
Int32

右から削除するインセットの量。 負であってはなりません。

bottom
Int32

下から削除するインセットの量。 負であってはなりません。

返品

inset insets

属性

注釈

指定された方向に挿入されたこのインスタンスのコピーを返します。

これは、ウィンドウの現在の領域よりも小さい領域にインセットをディスパッチすることを目的としています。

例:

childView.dispatchApplyWindowInsets(insets.inset(
                    childMarginLeft, childMarginTop, childMarginBottom, childMarginRight));

android.view.WindowInsets.inset(int, int, int, int)の Java ドキュメント。

このページの一部は、Androidオープンソースプロジェクトによって作成および共有された作業に基づく変更でありCreative Commons 2.5属性ライセンスに記載されている条件に従って使用されます。

適用対象