public static void hiadView(ViewGroup group,int time){
RotateAnimation ra=new RotateAnimation(180,360,group.getWidth()/2,group.getHeight());
ra.setDuration(500);
ra.setFillAfter(true);
ra.setStartOffset(time);//设置延迟几秒开启动画
group.startAnimation(ra);
for (int i = 0; i < group.getChildCount(); i++) {//获取ViewGroup的孩子总数
View childAt = group.getChildAt(i);//获取单个孩子
childAt.setEnabled(false);//孩子设置不可点击
}
group.setEnabled(false);
}
image.png
image.png
image.png
image.png
image.png