如何在 Android 中制作“忙碌”动画?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2324537/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 05:25:34  来源:igfitidea点击:

How to do 'busy' animation in Android?

androidanimationbusy-cursorbusyindicator

提问by Eno

Doesn't seem to be covered in the books Ive looked at.

我看过的书里好像都没有。

回答by CommonsWare

In addition to the progress dialogs described in the other answers, you can:

除了其他答案中描述的进度对话框外,您还可以:

  • Add a ProgressBarto your activity, as shown here
  • Use the progress indicator in the title bar of your activity, as shown here
  • Use a RotateAnimationand your own custom image
  • 一个添加ProgressBar到您的活动,如在这里
  • 使用进度指示器在活动的标题栏,如图所示这里
  • 使用RotateAnimation您自己的自定义图像