public class

ActionButton

extends FrameLayout
implements ToolbarButton
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ com.pdftron.pdf.widget.toolbar.component.view.ActionButton
Known Direct Subclasses
Known Indirect Subclasses

Summary

[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
ActionButton(Context context)
ActionButton(Context context, AttributeSet attrs)
ActionButton(Context context, AttributeSet attrs, int defStyleAttr)
ActionButton(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
void deselect()
void disable()
void enable()
MenuItem getMenuItem()
static int getPreviewColor(AnnotStyle annotStyle)
boolean hasOption()
void hide()
boolean isCheckable()
boolean isSelected()
boolean isVisible()
void select()
void setAlwaysShowIconHighlightColor(boolean alwaysShowIconHighlightColor)
Sets whether to show to show the icon highlight color event when button is disabled.
void setCheckable(boolean isCheckable)
void setDisabledIconColor(int iconColor)
void setHasOption(boolean hasOption)
void setIcon(Drawable drawable)
void setIconAlpha(int alpha)
void setIconColor(int color)
void setIconHighlightColor(int color)
Set the icon icon highlight color.
void setIconSize(int sizeInPx)
void setMenuItem(MenuItem item)
void setSelected(boolean selected)
void setSelectedBackgroundColor(int color)
void setSelectedIconColor(int iconColor)
void setShowIconHighlightColor(boolean showIconHighlightColor)
Sets whether to show the icon highlight color.
void show()
void updateAppearance(ArrayList<AnnotStyle> annotStyles)
[Expand]
Inherited Methods
From class android.widget.FrameLayout
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.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface com.pdftron.pdf.widget.toolbar.component.view.ToolbarButton

Public Constructors

public ActionButton (Context context)

public ActionButton (Context context, AttributeSet attrs)

public ActionButton (Context context, AttributeSet attrs, int defStyleAttr)

public ActionButton (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Public Methods

public void deselect ()

public void disable ()

public void enable ()

public MenuItem getMenuItem ()

public static int getPreviewColor (AnnotStyle annotStyle)

public boolean hasOption ()

public void hide ()

public boolean isCheckable ()

public boolean isSelected ()

public boolean isVisible ()

public void select ()

public void setAlwaysShowIconHighlightColor (boolean alwaysShowIconHighlightColor)

Sets whether to show to show the icon highlight color event when button is disabled.

See setShowIconHighlightColor(boolean)

Parameters
alwaysShowIconHighlightColor whether to always show highlighted icon colors

public void setCheckable (boolean isCheckable)

public void setDisabledIconColor (int iconColor)

public void setHasOption (boolean hasOption)

public void setIcon (Drawable drawable)

public void setIconAlpha (int alpha)

public void setIconColor (int color)

public void setIconHighlightColor (int color)

Set the icon icon highlight color. If color is 0 (transparent), then the icon highlight color is set to the icon color

Parameters
color color integer which can be 0

public void setIconSize (int sizeInPx)

public void setMenuItem (MenuItem item)

public void setSelected (boolean selected)

public void setSelectedBackgroundColor (int color)

public void setSelectedIconColor (int iconColor)

public void setShowIconHighlightColor (boolean showIconHighlightColor)

Sets whether to show the icon highlight color. The highlight color is used to highlight a certain area of the icon. When enabled, that section of the icon will be highlighted.

Parameters
showIconHighlightColor whether to show highlighted icon colors

public void show ()

public void updateAppearance (ArrayList<AnnotStyle> annotStyles)