Drawable.OnStateChange(Int32[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.