Class MarginDecoration
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ItemDecoration
-
- com.cheetahdigital.challenges.ui.responses.game.scratcher.MarginDecoration
-
public class MarginDecoration extends androidx.recyclerview.widget.RecyclerView.ItemDecoration
TheRecyclerView.ItemDecoration
class for adding spaces between grid items
-
-
Constructor Summary
Constructors Constructor Description MarginDecoration(int margin)
Simple constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getItemOffsets(android.graphics.Rect outRect, android.view.View view, androidx.recyclerview.widget.RecyclerView parent, androidx.recyclerview.widget.RecyclerView.State state)
-
-
-
Method Detail
-
getItemOffsets
public void getItemOffsets(android.graphics.Rect outRect, android.view.View view, androidx.recyclerview.widget.RecyclerView parent, androidx.recyclerview.widget.RecyclerView.State state)
- Overrides:
getItemOffsets
in classandroidx.recyclerview.widget.RecyclerView.ItemDecoration
-
-