setTitle

open fun setTitle(@Nullable title: CharSequence)(source)

Sets the title for this preference with a CharSequence. This title will be placed into the ID title within the View bound by onBindViewHolder.

Parameters

title

The title for this preference


open fun setTitle(titleResId: Int)(source)

Sets the title for this preference with a resource ID.

Parameters

titleResId

The title as a resource ID

See also