共用方式為


WindowInsets.GetRoundedCorner(Int32) Method

Definition

Returns the RoundedCorner of the given position if there is one.

[Android.Runtime.Register("getRoundedCorner", "(I)Landroid/view/RoundedCorner;", "", ApiSince=31)]
public Android.Views.RoundedCorner? GetRoundedCorner (int position);
[<Android.Runtime.Register("getRoundedCorner", "(I)Landroid/view/RoundedCorner;", "", ApiSince=31)>]
member this.GetRoundedCorner : int -> Android.Views.RoundedCorner

Parameters

position
Int32

the position of the rounded corner on the display. The value should be one of the following: RoundedCorner#POSITION_TOP_LEFT, RoundedCorner#POSITION_TOP_RIGHT, RoundedCorner#POSITION_BOTTOM_RIGHT, RoundedCorner#POSITION_BOTTOM_LEFT.

Returns

the rounded corner of the given position. Returns null if there is none or the rounded corner area is not inside the application's bounds.

Attributes

Remarks

Returns the RoundedCorner of the given position if there is one.

Java documentation for android.view.WindowInsets.getRoundedCorner(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