Class AnnotationCreationToolbarGroupingRule

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      List<MenuItem> getGroupPreset(@IntRange(from = ContextualToolbar.MIN_TOOLBAR_CAPACITY) 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.
      boolean areGeneratedGroupItemsSelectable() Indicates whether the group items (that are generated to fit items when not enough space) are selectable or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnnotationCreationToolbarGroupingRule

        AnnotationCreationToolbarGroupingRule(Context context)
    • Method Detail

      • getGroupPreset

        @NonNull() List<MenuItem> getGroupPreset(@IntRange(from = ContextualToolbar.MIN_TOOLBAR_CAPACITY) 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.

        Parameters:
        capacity - Number of spaces left on the toolbar for menu icons.
        itemsCount - Number of items to fit.
        Returns:

        Structured list of how items should be grouped.

      • areGeneratedGroupItemsSelectable

         boolean areGeneratedGroupItemsSelectable()

        Indicates whether the group items (that are generated to fit items when not enough space) are selectable or not.

        Returns:

        true if created group menu items should be selectable, false otherwise.