android–progressBar消失时淡出

android–progressBar消失时淡出,第1张

概述我想让一个进度条消失,消失.我已经在众所周知的SuperSU等其他应用程序中看到了这一点.但我不知道该怎么做.编辑:这是我做的:AlphaAnimationfadeOut=newAlphaAnimation(1.0f,0.0f);fadeOut.setDuration(500);fadeOut.setFillAfter(true);progressBar.startAnimation(fadeO

我想让一个进度条消失,消失.我已经在众所周知的SuperSU等其他应用程序中看到了这一点.

但我不知道该怎么做.

编辑:
这是我做的:

AlphaAnimation fadeOut = new AlphaAnimation(1.0f, 0.0f);fadeOut.setDuration(500);fadeOut.setFillAfter(true);progressbar.startAnimation(fadeOut);progressbar.setVisibility(Progressbar.GONE);ListvIEw.setAdapter(new MyAdapter(getApplicationContext(), ListGroups, ListChildren));ListvIEw.setVisibility(ListVIEw.VISIBLE);AlphaAnimation fadeIn = new AlphaAnimation(0.0f, 1.0f);fadeIn.setDuration(500);fadeIn.setFillAfter(true);ListvIEw.startAnimation(fadeIn);

当我开始另一个意图然后返回时,有时(这很奇怪,似乎是随机的)进度条位于列表视图上方并被冻结(不是动画).

没有人可以帮助我? 总结

以上是内存溢出为你收集整理的android – progressBar消失时淡出全部内容,希望文章能够帮你解决android – progressBar消失时淡出所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1116361.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存