Android progressBar not showing

后端 未结 3 1206
無奈伤痛
無奈伤痛 2021-02-13 14:28

I have a progressbar that is supposed to run in an AsyncTask , but it is not appearing, although the task runs

XML:



        
3条回答
  •  说谎
    说谎 (楼主)
    2021-02-13 15:09

    Did you forget to execute your task?

      ...
      diagProgress = (ProgressBar)findViewById(R.id.progressBar1);
      new DiagnosticsTask().execute();
    
    
      ....
    

提交回复
热议问题