[英]How to detect if animated view touches another view?
I have one view animated with transle animation: 我有一个用Transle动画制作动画的视图:
<translate
android:fromYDelta="0"
android:toYDelta="110%p"
android:duration="2000"
/>
public void translte(View v){
Animation animation= AnimationUtils.loadAnimation(context,R.anim.translate);
animation.setFillAfter(true);
v.startAnimation(animation);
}
And i want to detect if that view hits another view in its way. 我想检测该视图是否以其方式命中另一个视图。
How would you do it? 你会怎么做?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.