public static class ViewPrintJob.Builder extends PrintJob.Builder
Modifier and Type | Field and Description |
---|---|
protected View |
view |
flags, printToAny
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ViewPrintJob |
build()
Builds an instance.
|
void |
layoutAndMeasureView(View view,
int viewWidth)
Measure and layout the view that was passed
|
ViewPrintJob.Builder |
view(View view)
Deprecated.
Prefer
view(View, int) since it ensures the View is laid out and
measured. |
ViewPrintJob.Builder |
view(View view,
int viewWidth)
This method differs from
view(View) as it prepares the View for printing by
laying it out and measuring it for you. |
flag, flags, includePrintGroups, printJob, printToAny
protected View view
@Deprecated public ViewPrintJob.Builder view(View view)
view(View, int)
since it ensures the View is laid out and
measured.public ViewPrintJob.Builder view(View view, int viewWidth)
view(View)
as it prepares the View for printing by
laying it out and measuring it for you.public ViewPrintJob build()
build
in class PrintJob.Builder
public void layoutAndMeasureView(View view, int viewWidth)