ITeye博客

调用progressbar 的方法:

liangoogle · 2011-06-27 13:55 · dialog · 移动开发 · Markdown

使用和取消时调用下面的两个方法

   private ProgressDialog pBar;

   private void showWaitingDialog() {

        pBar = new ProgressDialog(this);

        pBar.setTitle("Title");

        pBar.setMessage("请稍等...");

        pBar.setProgressStyle(ProgressDialog.STYLE_SPINNER);

        pBar.show();

    }

    private void cancelDialog() {

        if (pBar != null && pBar.isShowing()) {

            pBar.cancel();

            pBar = null;

        }

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。