public class

ContentRecyclerAdapter

extends
java.lang.Object
   ↳
     ↳ com.pdftron.demo.navigation.adapter.ContentRecyclerAdapter

Summary

Nested Classes
class ContentRecyclerAdapter.ContentInfoKey  
class ContentRecyclerAdapter.ItemViewHolder  
Constants
int VIEW_TYPE_ACTION
int VIEW_TYPE_BUTTON
int VIEW_TYPE_CONTENT
int VIEW_TYPE_DIVIDER
int VIEW_TYPE_HEADER
int VIEW_TYPE_SPACER
Public Constructors
ContentRecyclerAdapter(Context context, JsonArray jsonItems, int buttonColor, int accentColor)
Public Methods
int getItemCount()
long getItemId(int position)
int getItemViewType(int position)
void onAttachedToRecyclerView(RecyclerView recyclerView)
void onBindViewHolder(ContentRecyclerAdapter.ItemViewHolder holder, int position)
ContentRecyclerAdapter.ItemViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
void onDetachedFromRecyclerView(RecyclerView recyclerView)
void setOnItemClickListener(ItemClickHelper.OnItemClickListener listener)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int VIEW_TYPE_ACTION

Constant Value: 4 (0x00000004)

public static final int VIEW_TYPE_BUTTON

Constant Value: 1 (0x00000001)

public static final int VIEW_TYPE_CONTENT

Constant Value: 2 (0x00000002)

public static final int VIEW_TYPE_DIVIDER

Constant Value: 3 (0x00000003)

public static final int VIEW_TYPE_HEADER

Constant Value: 0 (0x00000000)

public static final int VIEW_TYPE_SPACER

Constant Value: 5 (0x00000005)

Public Constructors

public ContentRecyclerAdapter (Context context, JsonArray jsonItems, int buttonColor, int accentColor)

Public Methods

public int getItemCount ()

public long getItemId (int position)

public int getItemViewType (int position)

public void onAttachedToRecyclerView (RecyclerView recyclerView)

public void onBindViewHolder (ContentRecyclerAdapter.ItemViewHolder holder, int position)

public ContentRecyclerAdapter.ItemViewHolder onCreateViewHolder (ViewGroup parent, int viewType)

public void onDetachedFromRecyclerView (RecyclerView recyclerView)

public void setOnItemClickListener (ItemClickHelper.OnItemClickListener listener)