added in version 24.1.0
belongs to Maven artifact com.android.support:preference-v7:28.0.0-alpha1

PreferenceViewHolder

public class PreferenceViewHolder
extends RecyclerView.ViewHolder

java.lang.Object
   ↳ android.support.v7.widget.RecyclerView.ViewHolder
     ↳ android.support.v7.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

Inherited fields

From class android.support.v7.widget.RecyclerView.ViewHolder

Public methods

View findViewById(int id)

Returns a cached reference to a subview managed by this object.

boolean isDividerAllowedAbove()

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.

boolean isDividerAllowedBelow()

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.

void setDividerAllowedAbove(boolean allowed)

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.

void setDividerAllowedBelow(boolean allowed)

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 methods

From class android.support.v7.widget.RecyclerView.ViewHolder
From class java.lang.Object