Class IndexedItemDecoration


  • public class IndexedItemDecoration
    extends androidx.recyclerview.widget.RecyclerView.ItemDecoration
    Style a RecyclerView.ItemDecoration with an index from A-Z.
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexedItemDecoration​(android.content.Context context)
      Constructor for IndexedItemDecoration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onDrawOver​(android.graphics.Canvas canvas, androidx.recyclerview.widget.RecyclerView parent, androidx.recyclerview.widget.RecyclerView.State state)  
      • Methods inherited from class androidx.recyclerview.widget.RecyclerView.ItemDecoration

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

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

      • IndexedItemDecoration

        public IndexedItemDecoration​(android.content.Context context)
        Constructor for IndexedItemDecoration.
        Parameters:
        context - context
    • Method Detail

      • onDrawOver

        public void onDrawOver​(android.graphics.Canvas canvas,
                               androidx.recyclerview.widget.RecyclerView parent,
                               androidx.recyclerview.widget.RecyclerView.State state)
        Overrides:
        onDrawOver in class androidx.recyclerview.widget.RecyclerView.ItemDecoration