Android APIs
public class

PreferenceViewHolder

extends RecyclerView.ViewHolder
java.lang.Object
   ↳ android.support.v7.widget.RecyclerView.ViewHolder
     ↳ android.support.v7.preference.PreferenceViewHolder

Class Overview

A RecyclerView.ViewHolder class which caches views associated with the default Preference layouts. Cached views can be retrieved by calling findViewById(int).

Summary

[Expand]
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.
[Expand]
Inherited Methods
From class android.support.v7.widget.RecyclerView.ViewHolder
From class java.lang.Object

Public Methods

public View findViewById (int id)

Returns a cached reference to a subview managed by this object. If the view reference is not yet cached, it falls back to calling findViewById(int) and caches the result.

Parameters
id Resource ID of the view to find
Returns
  • The view, or null if no view with the requested ID is found.