To use ProgressDialog till GridView gets loaded from webservice

后端 未结 4 1131
被撕碎了的回忆
被撕碎了的回忆 2021-01-17 05:51

I am fetching Image and Text for GridView from a webservice, so its takes some time to display the GridView. I want to show a ProgressDialog till Grid gets fully loaded. Wha

4条回答
  •  鱼传尺愫
    2021-01-17 06:02

    try dialog with this code else code seems working

    dialog= new ProgressDialog(this);
                    dialog.setMessage("Loading");
                    dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
                    dialog.setCancelable(false);        
                    dialog.show();
    

提交回复
热议问题