Udostępnij za pośrednictwem


ImageView.OnCreateDrawableState(Int32) Method

Definition

Generate the new Drawable state for this view.

[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[]

Parameters

extraSpace
Int32

if non-zero, this is the number of extra entries you would like in the returned array in which you can place your own states.

Returns

Int32[]
Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to