Class ThumbnailAdapter

    • Constructor Detail

    • Method Detail

      • getThumbnailHeight

        @IntRange(from = 1) int getThumbnailHeight()

        Returns the height of the thumbnails in thumbnail bar.

        Returns:

        Height of thumbnails in pixels.

      • setThumbnailHeight

         void setThumbnailHeight(@IntRange(from = 1) int thumbnailHeight)

        Sets the height of the thumbnails in thumbnail bar.

        Parameters:
        thumbnailHeight - Height of thumbnails in pixels.
      • getThumbnailWidth

        @IntRange(from = 1) int getThumbnailWidth()

        Returns the width of the thumbnails in thumbnail bar.

        Returns:

        Width of thumbnails in pixels.

      • setThumbnailWidth

         void setThumbnailWidth(@IntRange(from = 1) int thumbnailWidth)

        Sets the width of the thumbnails in thumbnail bar.

        Parameters:
        thumbnailWidth - Width of thumbnails in pixels.
      • getThumbnailBorderColor

        @ColorInt() int getThumbnailBorderColor()

        Returns the border color for the thumbnails in the thumbnail bar.

        Returns:

        Border colors of thumbnails.

      • setThumbnailBorderColor

         void setThumbnailBorderColor(@ColorInt() int borderColor)

        Sets the border color for the thumbnails in the thumbnail bar.

        Parameters:
        borderColor - Border colors of thumbnails.
      • getSelectedThumbnailBorderColor

        @ColorInt() int getSelectedThumbnailBorderColor()

        Returns the border color for the selected thumbnail in the thumbnail bar.

        Returns:

        Border colors of selected thumbnail.

      • setSelectedThumbnailBorderColor

         void setSelectedThumbnailBorderColor(@ColorInt() int borderColor)

        Sets the border color for the selected thumbnail in the thumbnail bar.

        Parameters:
        borderColor - Border colors of selected thumbnail.
      • selectPage

         void selectPage(@IntRange(from = 0) int currentPageIndex)

        Sets selected page to highlight.

        Parameters:
        currentPageIndex - current page to highlight.