java.lang.Object | ||
↳ | androidx.recyclerview.widget.RecyclerView.Adapter<VH extends androidx.recyclerview.widget.RecyclerView.ViewHolder> | |
↳ | com.pspdfkit.ui.thumbnail.ThumbnailAdapter |
Recycler adapter for creating thumbnail views inside the PdfScrollableThumbnailBar
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | ThumbnailAdapter.OnThumbnailClickListener | Listener for receiving page changes caused by the user touching the ThumbnailAdapter . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | getItemCount() | ||||||||||
int |
getSelectedThumbnailBorderColor()
Returns the border color for the selected thumbnail in the thumbnail bar.
| ||||||||||
int |
getThumbnailBorderColor()
Returns the border color for the thumbnails in the thumbnail bar.
| ||||||||||
int |
getThumbnailHeight()
Returns the height of the thumbnails in thumbnail bar.
| ||||||||||
int |
getThumbnailWidth()
Returns the width of the thumbnails in thumbnail bar.
| ||||||||||
void | onBindViewHolder(ThumbnailAdapter.ThumbnailViewHolder holder, int pageIndex) | ||||||||||
ThumbnailAdapter.ThumbnailViewHolder | onCreateViewHolder(ViewGroup parent, int viewType) | ||||||||||
void |
selectPage(int currentPageIndex)
Sets selected page to highlight.
| ||||||||||
void | setDrawableProviders(List<PdfDrawableProvider> drawableProviders) | ||||||||||
void |
setSelectedThumbnailBorderColor(int borderColor)
Sets the border color for the selected thumbnail in the thumbnail bar.
| ||||||||||
void |
setThumbnailBorderColor(int borderColor)
Sets the border color for the thumbnails in the thumbnail bar.
| ||||||||||
void |
setThumbnailHeight(int thumbnailHeight)
Sets the height of the thumbnails in thumbnail bar.
| ||||||||||
void |
setThumbnailWidth(int thumbnailWidth)
Sets the width of the thumbnails in thumbnail bar.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns the border color for the selected thumbnail in the thumbnail bar.
Returns the border color for the thumbnails in the thumbnail bar.
Returns the height of the thumbnails in thumbnail bar.
Returns the width of the thumbnails in thumbnail bar.
Sets selected page to highlight.
currentPageIndex | current page to highlight. |
---|
Sets the border color for the selected thumbnail in the thumbnail bar.
borderColor | Border colors of selected thumbnail. |
---|
Sets the border color for the thumbnails in the thumbnail bar.
borderColor | Border colors of thumbnails. |
---|
Sets the height of the thumbnails in thumbnail bar.
thumbnailHeight | Height of thumbnails in pixels. |
---|
Sets the width of the thumbnails in thumbnail bar.
thumbnailWidth | Width of thumbnails in pixels. |
---|