updateAppearance

open fun updateAppearance(position: Int, itemCount: Int)

Helper method that sets the drawable state of the ListItemLayout according to its position in the list. This can be called via bind if the ListItemLayout is inside of a ListItemViewHolder.

Children of ListItemLayout that wish to be affected by this state should duplicate its parent's state.


open fun updateAppearance(position: Int)

Helper method that sets the drawable state of the ListItemLayout according to its position in the list. This is already called by bind if the ListItemLayout is inside of a ListItemViewHolder.

Children of ListItemLayout that wish to be affected by this state should duplicate its parent's state.