setIcon

open fun setIcon(@Nullable icon: Drawable)(source)

Sets the icon for this preference with a Drawable. This icon will be placed into the ID icon within the View created by onBindViewHolder.

Parameters

icon

The optional icon for this preference


open fun setIcon(iconResId: Int)(source)

Sets the icon for this preference with a resource ID.

Parameters

iconResId

The icon as a resource ID

See also