語言

View.GetDefaultSize(Int32, Int32) 方法

定義

用工具回傳預設大小。

[Android.Runtime.Register("getDefaultSize", "(II)I", "")]
public static int GetDefaultSize(int size, int measureSpec);
[<Android.Runtime.Register("getDefaultSize", "(II)I", "")>]
static member GetDefaultSize : int * int -> int

參數

size
Int32

此視圖的預設大小

measureSpec
Int32

父體施加的限制

傳回

這個視角應該有的大小。

屬性

備註

用工具回傳預設大小。 如果 MeasureSpec 沒有施加任何限制,則使用提供的大小。 如果 MeasureSpec 允許,我會變大。

Java 文件 android.view.View.getDefaultSize(int, int)

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

適用於