java.lang.Object | |||
↳ | com.pspdfkit.ui.toolbar.grouping.DefaultMenuItemGroupingRule | ||
↳ | com.pspdfkit.ui.toolbar.grouping.presets.PresetMenuItemGroupingRule | ||
↳ | com.pspdfkit.ui.toolbar.grouping.presets.AnnotationCreationToolbarGroupingRule |
Default grouping rule of the AnnotationCreationToolbar
.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AnnotationCreationToolbarGroupingRule(Context context) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
areGeneratedGroupItemsSelectable()
Indicates whether the group items (that are generated to fit items when not enough space) are
selectable or not.
| ||||||||||
List<MenuItem> |
getGroupPreset(int capacity, int itemsCount)
Implementation of this method should return desired preset (structured list of menu items)
based on the provided capacity (space left on the toolbar) and the amount of items that needs
to be fitted.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Indicates whether the group items (that are generated to fit items when not enough space) are selectable or not.
true
if created group menu items should be selectable, false
otherwise.
Implementation of this method should return desired preset (structured list of menu items) based on the provided capacity (space left on the toolbar) and the amount of items that needs to be fitted.
capacity | Number of spaces left on the toolbar for menu icons. |
---|---|
itemsCount | Number of items to fit. |