public class

SimpleRecyclerView

extends RecyclerView
java.lang.Object
   ↳ RecyclerView
     ↳ com.pdftron.pdf.widget.recyclerview.SimpleRecyclerView

Summary

Public Constructors
SimpleRecyclerView(Context context)
SimpleRecyclerView(Context context, AttributeSet attrs)
SimpleRecyclerView(Context context, AttributeSet attrs, int defStyle)
Public Methods
void initDefaultView()
void initView(int spanCount)
Initializes the recycler view with span count and grid spacing.
void initView(int spanCount, int gridSpacing)
Initializes the recycler view with span count and grid spacing.
void removeItemDecoration()
void removeSpaceDecoration()
void setAdapter(Adapter adapter)
void setSpanSizeLookup(GridLayoutManager.SpanSizeLookup spanSizeLookup)
void update(int spanCount)
void updateLayoutManager(int count)
void updateSpanCount(int count)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SimpleRecyclerView (Context context)

public SimpleRecyclerView (Context context, AttributeSet attrs)

public SimpleRecyclerView (Context context, AttributeSet attrs, int defStyle)

Public Methods

public void initDefaultView ()

public void initView (int spanCount)

Initializes the recycler view with span count and grid spacing. Grid spacing is default to 4dp.

Parameters
spanCount The span count

public void initView (int spanCount, int gridSpacing)

Initializes the recycler view with span count and grid spacing.

Parameters
spanCount The span count
gridSpacing The grid spacing

public void removeItemDecoration ()

public void removeSpaceDecoration ()

public void setAdapter (Adapter adapter)

public void setSpanSizeLookup (GridLayoutManager.SpanSizeLookup spanSizeLookup)

public void update (int spanCount)

public void updateLayoutManager (int count)

public void updateSpanCount (int count)