public static final class ProgressDialogUI.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder(android.app.ProgressDialog progressDialog)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ProgressDialogUI |
build()
Build a new instance of ProgressDialogUI.
|
ProgressDialogUI.Builder |
contentLayout(int contentLayoutID)
If a content layout is attached to the progress dialog.
|
ProgressDialogUI.Builder |
description(int descriptionID)
If a TextView component inside the content layout for the description.
|
ProgressDialogUI.Builder |
jump(int jump)
Set the jump size of the progress bar.
|
ProgressDialogUI.Builder |
max(int size)
Set the max size of the progress bar.
|
ProgressDialogUI.Builder |
progressBar(int progressBarID)
If a progress bar is used inside the content layout.
|
ProgressDialogUI.Builder |
title(int titleID)
If a TextView component inside the content layout for the title.
|
public Builder(android.app.ProgressDialog progressDialog)
progressDialog - the instance of android.app.ProgressDialog.public ProgressDialogUI build()
public ProgressDialogUI.Builder contentLayout(int contentLayoutID)
contentLayoutID - the resource id of the content layout.public ProgressDialogUI.Builder description(int descriptionID)
descriptionID - the resource id of the title TextView.public ProgressDialogUI.Builder jump(int jump)
jump - jump size of the progress bar.public ProgressDialogUI.Builder max(int size)
size - max size of the progress bar.public ProgressDialogUI.Builder progressBar(int progressBarID)
progressBarID - the resource id of the progress bar.public ProgressDialogUI.Builder title(int titleID)
titleID - the resource id of the title TextView.