Package 

Class VendorsItemDecoration

  • All Implemented Interfaces:

    
    public final class VendorsItemDecoration
    extends RecyclerView.ItemDecoration
                        

    Item Decorator for vendor

    Display one separator above the vendors list

    • shouldHandleAllVendorsState == true :: below VendorsBulkActionViewHolder

    • shouldHandleAllVendorsState == false :: below VendorsHeaderViewHolder

    Display Bulk action as Sticky if necessary (disabled if talkback is on)

    • 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
      Unit getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) getItemOffsets We create space for separator
      Unit onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) onDraw draw the separator
      Unit onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) onDrawOver Create sticky Bulk action if required
      • Methods inherited from class androidx.recyclerview.widget.RecyclerView.ItemDecoration

        getItemOffsets, onDraw, onDrawOver
      • Methods inherited from class java.lang.Object

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

      • VendorsItemDecoration

        VendorsItemDecoration(RecyclerView recyclerView, Boolean shouldHandleAllVendorsState, ThemeProvider themeProvider)
    • Method Detail

      • getItemOffsets

         Unit getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state)

        getItemOffsets We create space for separator

      • onDraw

         Unit onDraw(Canvas c, RecyclerView parent, RecyclerView.State state)

        onDraw draw the separator

      • onDrawOver

         Unit onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state)

        onDrawOver Create sticky Bulk action if required