public class

CustomStampColorAdapter

extends
java.lang.Object
   ↳
     ↳ com.pdftron.pdf.adapter.CustomStampColorAdapter

Summary

Public Constructors
CustomStampColorAdapter(int[] bgColors, int[] strokeColors)
Class constructor.
Public Methods
int getItemCount()
int getSelectedIndex()
void onBindViewHolder(CustomStampColorAdapter.ViewHolder holder, int position)
CustomStampColorAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
void select(int index)
Select an icon.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CustomStampColorAdapter (int[] bgColors, int[] strokeColors)

Class constructor.

Parameters
bgColors An array of background colors
strokeColors An array of stroke colors. the length of stroke colors should be the same as the length of background colors

Public Methods

public int getItemCount ()

public int getSelectedIndex ()

Returns
  • The selected index in adapter

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

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

public void select (int index)

Select an icon.

Parameters
index The index of icon that should be selected