public class HeaderRenderer
extends java.lang.Object
| Constructor and Description |
|---|
HeaderRenderer(OrientationProvider orientationProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawHeader(android.support.v7.widget.RecyclerView recyclerView,
android.graphics.Canvas canvas,
android.view.View header,
android.graphics.Rect offset)
Draws a header to a canvas, offsetting by some x and y amount
|
public HeaderRenderer(OrientationProvider orientationProvider)
public void drawHeader(android.support.v7.widget.RecyclerView recyclerView,
android.graphics.Canvas canvas,
android.view.View header,
android.graphics.Rect offset)
recyclerView - the parent recycler view for drawing the header intocanvas - the canvas on which to draw the headerheader - the view to draw as the headeroffset - a Rect used to define the x/y offset of the header. Specify x/y offset by setting
the Rect.left and Rect.top properties, respectively.