且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何实现进度条闪屏? - 机器人

更新时间:2023-11-19 10:02:58

在这里,你走了,写了一个教程如何创建一个进度条闪屏:

Here you go, wrote a tutorial how to create a SplashScreen with a progress bar:

http://blog.blundell-apps.com/tut -splashscreen与 - 进度条/

基本上而不是你的线程启动的AsyncTask的,你传递一个关于你progressSpinner到的AsyncTask和线程是下载资源,这将更新(或任何你想做的事情)

Basically instead of your thread it starts an ASyncTask, you pass a reference to your progressSpinner into the ASyncTask and this will update it as the thread is downloading resources (or whatever you want to do)