How to show progress dialog in Android?

后端 未结 16 2939
予麋鹿
予麋鹿 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:35

    ProgressDialog is deprecated since API 26

    still you can use this:

    public void button_click(View view)
    {
        final ProgressDialog progressDialog = ProgressDialog.show(Login.this,"Please Wait","Processing...",true);
    }
    

提交回复
热议问题