Android Open Source - Android-DoubleProgressBar Double Progress Example






From Project

Back to project page Android-DoubleProgressBar.

License

The source code is released under:

Apache License

If you think the Android project Android-DoubleProgressBar listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.simaomata;
//  w  ww.j  a  va2s  .  com
import android.app.Activity;
import android.content.DialogInterface;
import android.os.Bundle;
import com.simaomata.common.DoubleProgressDialog;


/**
 * User: simao
 * Date: 2/25/11
 * Time: 23:52
 */
public class DoubleProgressExample extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        DoubleProgressDialog progressDialog;

        progressDialog = new DoubleProgressDialog(this);
        progressDialog.setMessage("Double progress test");
        progressDialog.setCancelable(true);
        progressDialog.setButton("Cancel", new DialogInterface.OnClickListener() {
            @Override
            public void onClick(DialogInterface dialogInterface, int i) {
                dialogInterface.cancel();
            }
        });
        progressDialog.show();

        progressDialog.setProgress(64);
        progressDialog.setSecondaryProgress(32);
    }
}




Java Source Code List

com.simaomata.DoubleProgressExample.java
com.simaomata.common.DoubleProgressDialog.java