public class

CustomColorModeDialogFragment.PresetRecyclerAdapter

extends SimpleRecyclerViewAdapter<T, VH extends ViewHolder>
java.lang.Object
   ↳
     ↳ com.pdftron.pdf.widget.recyclerview.SimpleRecyclerViewAdapter<T, VH extends RecyclerView.ViewHolder>
       ↳ com.pdftron.pdf.dialog.CustomColorModeDialogFragment.PresetRecyclerAdapter

Class Overview

A Recycler view adapter of preset custom color modes

Summary

Public Methods
int getItemCount()
Gets preset custom color mode count
int getItemViewType(int position)
Gets view type of specified position
void onBindViewHolder(RecyclerView.ViewHolder holder, int position)
RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
Overload implementation of SimpleRecyclerViewAdapter#onCreateViewHolder(ViewGroup, int)
[Expand]
Inherited Methods
From class com.pdftron.pdf.widget.recyclerview.SimpleRecyclerViewAdapter
From class java.lang.Object

Public Methods

public int getItemCount ()

Gets preset custom color mode count

Returns
  • preset custom color mode size + 1

public int getItemViewType (int position)

Gets view type of specified position

Parameters
position The specified position
Returns
  • ItemTouchHelperCallback#VIEW_TYPE_CONTENT

public void onBindViewHolder (RecyclerView.ViewHolder holder, int position)

public RecyclerView.ViewHolder onCreateViewHolder (ViewGroup parent, int viewType)

Overload implementation of SimpleRecyclerViewAdapter#onCreateViewHolder(ViewGroup, int)

Returns
  • new instance of view holder