How to show progress dialog in Android?

后端 未结 16 3009
予麋鹿
予麋鹿 2020-11-28 07:40

I want to show ProgressDialog when I click on Login button and it takes time to move to another page. How can I do this?

16条回答
  •  悲&欢浪女
    2020-11-28 08:17

            final ProgressDialog progDailog = ProgressDialog.show(Inishlog.this, contentTitle, "even geduld aub....", true);//please wait....
    
            final Handler handler = new Handler() {
                @Override
                public void handleMessage(Message msg) {
                    Barcode_edit.setText("");
                    showAlert("Product detail saved.");
    
    
                }
    
            };
    
            new Thread() {
                public void run() {
                    try {
             } catch (Exception e) {
    
                    }
                    handler.sendEmptyMessage(0);
                    progDailog.dismiss();
                }
            }.start();
    

提交回复
热议问题