语言

RoundedCorner(Int32, Int32, Int32, Int32) 构造函数

定义

创建 RoundedCorner。

[Android.Runtime.Register(".ctor", "(IIII)V", "", ApiSince=31)]
public RoundedCorner(int position, int radius, int centerX, int centerY);
[<Android.Runtime.Register(".ctor", "(IIII)V", "", ApiSince=31)>]
new Android.Views.RoundedCorner : int * int * int * int -> Android.Views.RoundedCorner

参数

position
Int32

圆角的位置。

radius
Int32

圆角的半径。

centerX
Int32

圆角的中心点的 x。

centerY
Int32

圆角的中心点的 y。

属性

注解

创建 RoundedCorner。

请注意,这仅适用于测试。 对于生产代码,开发人员应始终使用 RoundedCorner 通过 WindowInsets#getRoundedCorner 或 Display#getRoundedCorner从系统获取的代码。

适用于 . 的 android.view.RoundedCorner.RoundedCorner(int, int, int, int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于