Back to project page Ocypode.
The source code is released under:
MIT License
If you think the Android project Ocypode listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ocypode.component.view.dialog; //from ww w. ja va 2 s. c om import roboguice.inject.ContextSingleton; import android.app.ProgressDialog; import android.content.Context; import com.google.inject.Inject; @ContextSingleton public class ProgressDialogBuilder extends ProgressDialog { @Inject public ProgressDialogBuilder(Context context) { super(context); setDefaultValues(); } public ProgressDialogBuilder setMessage(String message) { super.setMessage(message); return this; } public ProgressDialogBuilder setMessage(int messageId) { super.setMessage(getContext().getString(messageId)); return this; } private void setDefaultValues() { setTitle(null); setIndeterminate(true); setCancelable(true); } }