java.lang.Object | |
↳ | com.pdftron.pdf.utils.ToolbarActionMode |
Toolbar action mode
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
|
Class constructor
context | The context |
---|---|
toolbar | The toolbar |
Finish action mode
Gets toolbar custom view
Gets toolbar menu
Gets toolbar subtitle
Gets toolbar title
Inflates toolbar menu
menuRes | Toolbar menu resource |
---|
Invalidates action mode
Sets toolbar navigation icon drawable
drawable | The drawable |
---|
Sets toolbar navigation icon drawable
resId | The drawable resource id |
---|
Sets toolbar custom view
view | The custom view |
---|
Sets toolbar enter animation
animId | The animation resource id |
---|
Sets toolbar enter animation
animation | The animation |
---|
Sets toolbar exit animation
animId | The animation resource id |
---|
Sets toolbar exit animation
animation | The animation |
---|
The main toolbar, useful when show/hide cad toolbar
Sets subtitle to toolbar
subtitle | The subtitle |
---|
Sets subtitle to toolbar
resId | Subtitle resource id |
---|
Sets title to toolbar
title | The title |
---|
Sets title to toolbar
resId | title resource id |
---|
Starts action mode
callback | The tool bar action mode callback |
---|