ImageView.OnCreateDrawableState(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為此視圖產生新 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 所創建與分享的作品,並依授權條款所描述的使用進行修改。