进度对话框

方法:

public void click4(View view){
final ProgressDialog pd=new ProgressDialog(this);
pd.setTitle(“请稍等片刻!”);
pd.setMessage(“正在加载中……”);
pd.show();
new Thread(){
@Override
public void run() {
try {
Thread.sleep(3000);
} catch (InterruptedException e) {
e.printStackTrace();
}
pd.dismiss();
}
}.start();
}

你可能感兴趣的:(对话框)