Android的加载动画 [英] Android loading animation
本文介绍了Android的加载动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找如何在android的创建加载动画的一些信息。是否有可能创造这个动画,我可以调用一个线程这部动画,并最终在其他?
I am searching for some info on how to create loading animation in android. Is it possible to create this animation that i could call this animation in one thread and end in other ?
我在寻找这样的:
推荐答案
尝试下面code
ProgressDialog用于显示:
ProgressDialog for showing:
ProgressDialog mDialog = new ProgressDialog(getApplicationContext());
mDialog.setMessage("Loading...");
mDialog.setCancelable(false);
mDialog.show();
取消ProgressDialog低于code后:
After cancel ProgressDialog below code:
mdialog.dismiss();
这篇关于Android的加载动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文