Package 

Class StaggeredGridLayoutManager.LayoutParams

    • Constructor Detail

      • StaggeredGridLayoutManager.LayoutParams

        StaggeredGridLayoutManager.LayoutParams(Context c, AttributeSet attrs)
      • StaggeredGridLayoutManager.LayoutParams

        StaggeredGridLayoutManager.LayoutParams(int width, int height)
      • StaggeredGridLayoutManager.LayoutParams

        StaggeredGridLayoutManager.LayoutParams(ViewGroup.LayoutParams source)
    • Method Detail

      • setFullSpan

         void setFullSpan(boolean fullSpan)

        When set to true, the item will layout using all span area. That means, if orientationis vertical, the view will have full width; if orientation is horizontal, the view willhave full height.

        Parameters:
        fullSpan - True if this item should traverse all spans.
      • isFullSpan

         boolean isFullSpan()

        Returns whether this View occupies all available spans or just one.

      • getSpanIndex

         final int getSpanIndex()

        Returns the Span index to which this View is assigned.