'Updating TextView in custom loading dialog
I would like to update the content of the TextView from "Loading.." to "Getting ready" after three seconds. Any advice on how to achieve this?
Thats my Loading Dialog.
public class LoadingDialog {
private Activity activity;
private AlertDialog dialog;
LoadingDialog(Activity activity) {
this.activity = activity;
}
void startLoadingDialog() {
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
LayoutInflater inflater = activity.getLayoutInflater();
builder.setView(inflater.inflate(R.layout.document_request_loading, null));
builder.setCancelable(false);
dialog = builder.create();
dialog.show();
}
void dismissStartLoadingDialog(){
dialog.dismiss();
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
