public static class

RVJsonAdapter.ViewHolder

extends RecyclerView.ViewHolder
java.lang.Object
   ↳ android.support.v7.widget.RecyclerView.ViewHolder
     ↳ com.github.droidpl.android.jsonviewer.RVJsonAdapter.ViewHolder

Class Overview

The view holder for the adapter.

Summary

[Expand]
Inherited Fields
From class android.support.v7.widget.RecyclerView.ViewHolder
Public Constructors
ViewHolder(View itemView)
Constructor for the view holder.
Public Methods
void setObject(String property, boolean isArray)
Sets an object in the adapter.
void setText(String property, String text)
Sets the text in the property.
[Expand]
Inherited Methods
From class android.support.v7.widget.RecyclerView.ViewHolder
From class java.lang.Object

Public Constructors

public ViewHolder (View itemView)

Constructor for the view holder.

Parameters
itemView The view.

Public Methods

public void setObject (String property, boolean isArray)

Sets an object in the adapter.

Parameters
property The property to display.
isArray True if array, false otherwise.

public void setText (String property, String text)

Sets the text in the property.

Parameters
property The property.
text The text.