MDCCardCellState

enum MDCCardCellState {}

Through the lifecycle of the cell, the cell can go through one of the 3 states, normal, highlighted, and selected. The cell starts in its default state, normal. When selectable is set to NO, each touch on the cell turns it to the highlighted state, and when the touch is released, it is returned to the normal state. When selectable is set to YES. Each touch on the cell that isn’t cancelled turns the cell to its selected state. Another touch on the cell changes it back to normal.

  • The visual state when the cell is in its normal state.

    Declaration

    Objective-C

    MDCCardCellStateNormal = 0
  • The visual state when the cell is in its highlighted state.

    Declaration

    Objective-C

    MDCCardCellStateHighlighted
  • The visual state when the cell has been selected.

    Declaration

    Objective-C

    MDCCardCellStateSelected
  • The visual state when the cell is being dragged. Currently only used with the Ripple Beta component.

    Declaration

    Objective-C

    MDCCardCellStateDragged