public class

ToolbarActionMode

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.utils.ToolbarActionMode

Class Overview

Toolbar action mode

Summary

Nested Classes
interface ToolbarActionMode.Callback Callback interface to be invoked when an interaction is needed (see android.view.ActionMode.Callback). 
Public Constructors
ToolbarActionMode(Context context, Toolbar toolbar)
Class constructor
Public Methods
void finish()
Finish action mode
View getCustomView()
Gets toolbar custom view
Menu getMenu()
Gets toolbar menu
CharSequence getSubtitle()
Gets toolbar subtitle
CharSequence getTitle()
Gets toolbar title
void inflateMenu(int menuRes)
Inflates toolbar menu
void invalidate()
Invalidates action mode
void setCloseDrawable(Drawable drawable)
Sets toolbar navigation icon drawable
void setCloseDrawable(int resId)
Sets toolbar navigation icon drawable
void setCustomView(View view)
Sets toolbar custom view
void setEnterAnimation(int animId)
Sets toolbar enter animation
void setEnterAnimation(Animation animation)
Sets toolbar enter animation
void setExitAnimation(int animId)
Sets toolbar exit animation
void setExitAnimation(Animation animation)
Sets toolbar exit animation
void setMainToolbar(Toolbar toolbar)
The main toolbar, useful when show/hide cad toolbar
void setSubtitle(CharSequence subtitle)
Sets subtitle to toolbar
void setSubtitle(int resId)
Sets subtitle to toolbar
void setTitle(CharSequence title)
Sets title to toolbar
void setTitle(int resId)
Sets title to toolbar
void startActionMode(ToolbarActionMode.Callback callback)
Starts action mode
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ToolbarActionMode (Context context, Toolbar toolbar)

Class constructor

Parameters
context The context
toolbar The toolbar

Public Methods

public void finish ()

Finish action mode

public View getCustomView ()

Gets toolbar custom view

Returns
  • Toolbar custom view

public Menu getMenu ()

Gets toolbar menu

Returns
  • Toolbar menu

public CharSequence getSubtitle ()

Gets toolbar subtitle

Returns
  • Toolbar subtitle

public CharSequence getTitle ()

Gets toolbar title

Returns
  • Toolbar title

public void inflateMenu (int menuRes)

Inflates toolbar menu

Parameters
menuRes Toolbar menu resource

public void invalidate ()

Invalidates action mode

public void setCloseDrawable (Drawable drawable)

Sets toolbar navigation icon drawable

Parameters
drawable The drawable

public void setCloseDrawable (int resId)

Sets toolbar navigation icon drawable

Parameters
resId The drawable resource id

public void setCustomView (View view)

Sets toolbar custom view

Parameters
view The custom view

public void setEnterAnimation (int animId)

Sets toolbar enter animation

Parameters
animId The animation resource id

public void setEnterAnimation (Animation animation)

Sets toolbar enter animation

Parameters
animation The animation

public void setExitAnimation (int animId)

Sets toolbar exit animation

Parameters
animId The animation resource id

public void setExitAnimation (Animation animation)

Sets toolbar exit animation

Parameters
animation The animation

public void setMainToolbar (Toolbar toolbar)

The main toolbar, useful when show/hide cad toolbar

public void setSubtitle (CharSequence subtitle)

Sets subtitle to toolbar

Parameters
subtitle The subtitle

public void setSubtitle (int resId)

Sets subtitle to toolbar

Parameters
resId Subtitle resource id

public void setTitle (CharSequence title)

Sets title to toolbar

Parameters
title The title

public void setTitle (int resId)

Sets title to toolbar

Parameters
resId title resource id

public void startActionMode (ToolbarActionMode.Callback callback)

Starts action mode

Parameters
callback The tool bar action mode callback