Does Thread.sleep() makes the UI Thread to sleep?

后端 未结 4 961
逝去的感伤
逝去的感伤 2020-12-19 22:43

Will this make the current UI thread to sleep?

try 
{
   Thread.sleep(20);
   onProgressUpdate(i);
} catch (InterruptedException e) {
      e.printStackTrace         


        
4条回答
提交回复
热议问题