用法:
//旋转动画
Object dh1 = i.dhas(2, "rotation", new Object[]{ 60, 180});
i.dh(dh1, "duration", 2000);
//伸缩动画
Object dh2 = i.dhas(2, "scaleX", new Object[]{ 1.5, 2.5});
i.dh(dh2, "duration", 2000);
//移动动画
Object dh3 = i.dhas(2, "translationX", new Object[]{ 0, 60});
i.dh(dh3, "duration", 2000);
//透明度
Object dh4 = i.dhas(2, "alpha", new Object[]{ 1, 0.3, 1, 0.2, 1});
i.dh(dh4, "duration", 2000);
//顺序执行
Object dhlist = i.dhast("sequen", new Object[]{ dh1, dh2, dh3, dh4});
//同时执行
//Object dhlist = i.dhast("together", new Object[]{ dh1, dh2, dh3, dh4});
i.dh(dhlist, "start");
说明:
常用于动画集合执行。
提示:
队列动画集合允许被其他队列动画集合添加成为子动画。
提示:
动画集合如果设置了动画控制属性,同时也会重置所有子控件的属性。