/* 非确定模式为false */ mProgressBar01.setIndeterminate(false); /* 将隐藏的ProgressBar显示出来 */ mProgressBar01.setVisibility(View.VISIBLE); /* 指定Progress为最多100 */ mProgressBar01.setMax(100); /* 初始Progress为0 */ mProgressBar01.setProgress(0); //进度条滚动 mProgressBar01.setProgress(intCounter); /* 设定ProgressBar Widget为隐藏 */ mProgressBar01.setVisibility(View.GONE);