語言

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

Java 文件 android.view.RoundedCorner.RoundedCorner(int, int, int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於