public class ProgressUtils {
View dialogview;
private ImageView iamge1,iamge2,iamge3;
Dialog progress ;
public ProgressUtils(Context context){
progress = new Dialog(context,R.style.CustomDialog);
dialogview= LayoutInflater.from(context).inflate(R.layout.pdialog,null);
iamge1=(ImageView)dialogview.findViewById(R.id.dialog1);
iamge2=(ImageView)dialogview.findViewById(R.id.dialog2);
iamge3=(ImageView)dialogview.findViewById(R.id.dialog3);
final Animation largeranimation1 = AnimationUtils.loadAnimation(context, R.anim.larger);
final Animation largeranimation2 = AnimationUtils.loadAnimation(context, R.anim.larger);
final Animation largeranimation3 = AnimationUtils.loadAnimation(context, R.anim.larger);
final Animation smallanimation1 = AnimationUtils.loadAnimation(context, R.anim.small);
final Animation smallanimation2 = AnimationUtils.loadAnimation(context, R.anim.small);
final Animation smallanimation3 = AnimationUtils.loadAnimation(context, R.anim.small);
iamge1.startAnimation(largeranimation1);
new Handler().postDelayed(new Runnable(
等待进度条---三个圆点一排间隔放大缩小动画
最新推荐文章于 2023-07-14 10:39:18 发布
本文介绍了一种实现等待进度条的动画效果,通过三个圆点依次放大缩小来展示加载过程。这种动画能提升用户体验,使得用户在等待时有所反馈。
摘要由CSDN通过智能技术生成