語言

ImageView.OnCreateDrawableState(Int32) 方法

定義

為此視圖產生新 Drawable 狀態。

[Android.Runtime.Register("onCreateDrawableState", "(I)[I", "GetOnCreateDrawableState_IHandler")]
public virtual int[]? OnCreateDrawableState(int extraSpace);
[<Android.Runtime.Register("onCreateDrawableState", "(I)[I", "GetOnCreateDrawableState_IHandler")>]
override this.OnCreateDrawableState : int -> int[]

參數

extraSpace
Int32

如果不是零,這是你希望在回傳陣列中多出一個可以放置自己狀態的項目數量。

傳回

Int32[]

回傳一個陣列,儲存目前可繪製的視圖狀態。

屬性

備註

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

適用於