Condividi tramite


Drawable.OnStateChange(Int32[]) Method

Definition

Override this in your subclass to change appearance if you recognize the specified state.

[Android.Runtime.Register("onStateChange", "([I)Z", "GetOnStateChange_arrayIHandler")]
protected virtual bool OnStateChange (int[] state);
[<Android.Runtime.Register("onStateChange", "([I)Z", "GetOnStateChange_arrayIHandler")>]
abstract member OnStateChange : int[] -> bool
override this.OnStateChange : int[] -> bool

Parameters

state
Int32[]

Returns

Returns true if the state change has caused the appearance of the Drawable to change (that is, it needs to be drawn), else false if it looks the same and there is no need to redraw it since its last state.

Attributes

Remarks

Override this in your subclass to change appearance if you recognize the specified state.

Java documentation for android.graphics.drawable.Drawable.onStateChange(int[]).

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