PreferenceViewHolder
open class PreferenceViewHolder : RecyclerView.ViewHolder
kotlin.Any | ||
↳ | androidx.recyclerview.widget.RecyclerView.ViewHolder | |
↳ | androidx.preference.PreferenceViewHolder |
A RecyclerView.ViewHolder
class which caches views associated with the default Preference
layouts. Cached views can be retrieved by calling findViewById(int)
.
Summary
Public methods | |
---|---|
open View! |
findViewById(@IdRes id: Int) Returns a cached reference to a subview managed by this object. |
open Boolean |
Dividers are only drawn between items if both items allow it, or above the first and below the last item if that item allows it. |
open Boolean |
Dividers are only drawn between items if both items allow it, or above the first and below the last item if that item allows it. |
open Unit |
setDividerAllowedAbove(allowed: Boolean) Dividers are only drawn between items if both items allow it, or above the first and below the last item if that item allows it. |
open Unit |
setDividerAllowedBelow(allowed: Boolean) Dividers are only drawn between items if both items allow it, or above the first and below the last item if that item allows it. |
Inherited functions | |
---|---|