Android开发(三十二)——延时
生活随笔
收集整理的這篇文章主要介紹了
Android开发(三十二)——延时
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
模擬延時
private class GetDataTask extends AsyncTask<Void, Void, String[]> {@Overrideprotected String[] doInBackground(Void... params) {// Simulates a background job.try {Thread.sleep(1000);} catch (InterruptedException e) {}return null;}@Overrideprotected void onPostExecute(String[] result) {// Do some stuff here// Call onRefreshComplete when the list has been refreshed. mPullRefreshScrollView.onRefreshComplete();super.onPostExecute(result);} }//調用 new GetDataTask().execute();?
轉載于:https://www.cnblogs.com/ccdc/p/4623668.html
總結
以上是生活随笔為你收集整理的Android开发(三十二)——延时的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 新疆行风热线投诉电话(黑龙江省台行风热线
- 下一篇: Android应用开发之(通过Clipb