RoundedCorner(Int32, Int32, Int32, Int32) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建 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 属性许可证中所述的术语使用。