public class

ActionToolbar

extends FrameLayout
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ com.pdftron.pdf.widget.toolbar.component.view.ActionToolbar
Known Direct 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
ActionToolbar(Context context)
ActionToolbar(Context context, PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition position, boolean isPresetExpanding, boolean showEmptyPreset)
ActionToolbar(Context context, AnnotationToolbarTheme annotToolbarTheme)
ActionToolbar(Context context, AttributeSet attrs)
ActionToolbar(Context context, AttributeSet attrs, int defStyleAttr)
ActionToolbar(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
void addOnButtonLongClickListener(View.OnLongClickListener listener)
void addOnMenuItemClickListener(Toolbar.OnMenuItemClickListener listener)
void addToolbarActionsLeftOptionalContainer(View view)
void addToolbarActionsRightOptionalContainer(View view)
void addToolbarLeftOptionalContainer(View view)
void addToolbarOverlay(View view)
void clearOptionalContainers()
void clearToolbarOverlayView()
void deselectAllTools()
void disableAllItems()
FrameLayout getPresetContainer()
PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition getToolbarPosition()
boolean hasVisibleItems()
void inflateWithBuilder(AnnotationToolbarBuilder builder)
boolean isVertical()
void scrollToToolButton(int buttonId)
Attempts to scroll the scrollable tool region to the specified tool button if the button is not visible.
void selectToolbarButtonIfAvailable(int buttonId)
Click button if it exists, otherwise do nothing
void setAlwaysShowIconHighlightColor(int id, boolean alwaysShowIconHighlightColor, int color)
void setBackground(int id, boolean showBackground)
void setCompactMode(boolean compactMode)
void setEmptyToolText(int emptyText)
void setEmptyToolTextOnClickListener(View.OnClickListener listener)
void setEmptyToolTextVisible(boolean visible)
void setIconColor(int buttonId, int iconColor)
void setItemAppearanceEnabled(int buttonId, boolean isAppearanceEnabled)
void setItemEnabled(int buttonId, boolean isEnabled)
void setItemIcon(int id, Drawable icon)
void setItemSelected(int buttonId, boolean isSelected)
void setItemVisibility(int buttonId, boolean isVisible)
void setNavigationIcon(int icon)
void setNavigationIconProperty(int paddingLeft, int minWidth)
void setNavigationIconVisible(boolean visible)
void setSelectedIconColor(int buttonId, int iconColor)
void setToolRegionVisible(boolean visible)
void setToolbarItemGravity(int layoutGravity)
void setToolbarSwitcherVisible(boolean visible)
void setVerticalLayout(PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition position)
void toggleToolbarButtons(int buttonId)
If a button exists and is selectable, then select it and deselect all other buttons.
void updateAccentButton(int buttonId, int color, int alpha)
[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

Public Constructors

public ActionToolbar (Context context)

public ActionToolbar (Context context, PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition position, boolean isPresetExpanding, boolean showEmptyPreset)

public ActionToolbar (Context context, AnnotationToolbarTheme annotToolbarTheme)

public ActionToolbar (Context context, AttributeSet attrs)

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

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

Public Methods

public void addOnButtonLongClickListener (View.OnLongClickListener listener)

public void addOnMenuItemClickListener (Toolbar.OnMenuItemClickListener listener)

public void addToolbarActionsLeftOptionalContainer (View view)

public void addToolbarActionsRightOptionalContainer (View view)

public void addToolbarLeftOptionalContainer (View view)

public void addToolbarOverlay (View view)

public void clearOptionalContainers ()

public void clearToolbarOverlayView ()

public void deselectAllTools ()

public void disableAllItems ()

public FrameLayout getPresetContainer ()

public boolean hasVisibleItems ()

public void inflateWithBuilder (AnnotationToolbarBuilder builder)

public boolean isVertical ()

public void scrollToToolButton (int buttonId)

Attempts to scroll the scrollable tool region to the specified tool button if the button is not visible.

Parameters
buttonId id of the button to scroll to.

public void selectToolbarButtonIfAvailable (int buttonId)

Click button if it exists, otherwise do nothing

Parameters
buttonId of the toolbar button

public void setAlwaysShowIconHighlightColor (int id, boolean alwaysShowIconHighlightColor, int color)

public void setBackground (int id, boolean showBackground)

public void setCompactMode (boolean compactMode)

public void setEmptyToolText (int emptyText)

public void setEmptyToolTextOnClickListener (View.OnClickListener listener)

public void setEmptyToolTextVisible (boolean visible)

public void setIconColor (int buttonId, int iconColor)

public void setItemAppearanceEnabled (int buttonId, boolean isAppearanceEnabled)

public void setItemEnabled (int buttonId, boolean isEnabled)

public void setItemIcon (int id, Drawable icon)

public void setItemSelected (int buttonId, boolean isSelected)

public void setItemVisibility (int buttonId, boolean isVisible)

public void setNavigationIcon (int icon)

public void setNavigationIconProperty (int paddingLeft, int minWidth)

public void setNavigationIconVisible (boolean visible)

public void setSelectedIconColor (int buttonId, int iconColor)

public void setToolRegionVisible (boolean visible)

public void setToolbarItemGravity (int layoutGravity)

public void setToolbarSwitcherVisible (boolean visible)

public void setVerticalLayout (PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition position)

public void toggleToolbarButtons (int buttonId)

If a button exists and is selectable, then select it and deselect all other buttons.

Parameters
buttonId of the toolbar button

public void updateAccentButton (int buttonId, int color, int alpha)