Loading spinning wheel animation

前端 未结 3 589

I\'m doing a search and populating a listview with results as they come. On top there\'s a bar with the text \"Search in progress... \" I\'d like to add a small spinning whe

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-23 22:39

    i did spinning progress bar in my application. Hope this will helps you.

    progDailog = ProgressDialog.show(this, "Progress_bar or give anything you want",
                "Give message like ....please wait....", true);
        new Thread() {
            public void run() {
                try {
                    // sleep the thread, whatever time you want. 
                    sleep(2000);
                } catch (Exception e) {
                }
                progDailog.dismiss();
            }
        }.start();
    

    if you have still doubts, pls let me know.

提交回复
热议问题