Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

MaterialCardView.OnCheckedChangeListener

public static interface MaterialCardView.OnCheckedChangeListener

com.google.android.material.card.MaterialCardView.OnCheckedChangeListener


Interface definition for a callback to be invoked when the card checked state changes.

Summary

Public methods

abstract void onCheckedChanged(MaterialCardView card, boolean isChecked)

Called when the checked state of a compound button has changed.

Public methods

onCheckedChanged

void onCheckedChanged (MaterialCardView card, 
                boolean isChecked)

Called when the checked state of a compound button has changed.

Parameters
card MaterialCardView: The Material Card View whose state has changed.

isChecked boolean: The new checked state of MaterialCardView.