Package 

Class ViewBinderHelper

    • Constructor Detail

      • ViewBinderHelper

        ViewBinderHelper()
    • Method Detail

      • bind

         final Unit bind(SwipeRevealLayout swipeLayout, String id)

        Help to save and restore open/close state of the swipeLayout. Call this method when you bind your view holder with the data object.

        Parameters:
        swipeLayout - swipeLayout of the current view.
        id - a string that uniquely defines the data object of the current view.
      • lockSwipe

         final Unit lockSwipe(String id)

        Lock swipe for some layouts.

        Parameters:
        id - a string that uniquely defines the data object.
      • unlockSwipe

         final Unit unlockSwipe(String id)

        Unlock swipe for some layouts.

        Parameters:
        id - a string that uniquely defines the data object.
      • setOpenOnlyOne

         final Unit setOpenOnlyOne(Boolean openOnlyOne)
        Parameters:
        openOnlyOne - If set to true, then only one row can be opened at a time.
      • openLayout

         final <ERROR CLASS> openLayout(String id)

        Open a specific layout.

        Parameters:
        id - unique id which identifies the data object which is bind to the layout.
      • closeLayout

         final <ERROR CLASS> closeLayout(String id)

        Close a specific layout.

        Parameters:
        id - unique id which identifies the data object which is bind to the layout.