material-popup-menu / com.github.zawadz88.materialpopupmenu / MaterialPopupMenuBuilder / ItemHolder / icon

icon

var icon: Int

Optional icon to be displayed together with the label.

This must be a valid drawable resource ID if set. 0 Means that no icon should be displayed.

Alternatively, you can set the drawable using iconDrawable.

If both icon and iconDrawable are set iconDrawable will be used.