public class

PresetColorGridView

extends ExpandableGridView
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.AdapterView<T extends android.widget.Adapter>
         ↳ android.widget.AbsListView
           ↳ android.widget.GridView
             ↳ com.pdftron.pdf.utils.ExpandableGridView
               ↳ com.pdftron.pdf.controls.PresetColorGridView

Class Overview

A ExpandableGridView shows a list of standard preset colors.

Summary

[Expand]
Inherited Constants
From class android.widget.GridView
From class android.widget.AbsListView
From class android.widget.AdapterView
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
PresetColorGridView(Context context)
Class constructor
PresetColorGridView(Context context, AttributeSet attrs)
Class constructor
PresetColorGridView(Context context, AttributeSet attrs, int defStyle)
Class constructor
Public Methods
ColorPickerGridViewAdapter getAdapter()
void setSelectedColor(int color)
Sets selected color.
void setSelectedColor(String colorSrc)
Sets selected color.
void setShowAllColors(boolean showAllColors)
void setShowHighlightColors(boolean shouldShowHighlightColors)
void showTransparentColor(boolean showTransparent)
Whether to show transparent grid item
[Expand]
Inherited Methods
From class com.pdftron.pdf.utils.ExpandableGridView
From class android.widget.GridView
From class android.widget.AbsListView
From class android.widget.AdapterView
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.text.TextWatcher
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.ViewTreeObserver.OnGlobalLayoutListener
From interface android.view.ViewTreeObserver.OnTouchModeChangeListener
From interface android.view.accessibility.AccessibilityEventSource
From interface android.widget.Filter.FilterListener

Public Constructors

public PresetColorGridView (Context context)

Class constructor

public PresetColorGridView (Context context, AttributeSet attrs)

Class constructor

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

Class constructor

Public Methods

public ColorPickerGridViewAdapter getAdapter ()

public void setSelectedColor (int color)

Sets selected color. If color matches any color inside color grid, it will show a white check mark.

Parameters
color the color

public void setSelectedColor (String colorSrc)

Sets selected color. If color matches any color inside color grid, it will show a white check mark.

Parameters
colorSrc the color source in string format

public void setShowAllColors (boolean showAllColors)

public void setShowHighlightColors (boolean shouldShowHighlightColors)

public void showTransparentColor (boolean showTransparent)

Whether to show transparent grid item

Parameters
showTransparent true then show transparent item, false otherwise