5
在TranslateAnimation之后,翻译的视图上的OnClickListener不会被翻译。我尝试在自定义LinearLayout中重写getHitRect,但没有成功。我还试图用一个touchdelegate和所有其他建议整个互联网上找到没有成功:)查看动画不会更改触摸区域
TranslateAnimation open = new TranslateAnimation(0, displayWidth - ivTimelineWidth, 0, 0);
open.setDuration(1000);
open.setFillAfter(true);
llMapContent.startAnimation(open);
请帮我:)
朱利安
谢谢,它似乎interessant,但我的看法消失在动画的结尾使用您的代码段... – Jul 2012-04-21 23:31:21
你保留fillAftertrue部分 – testingtester 2012-04-22 00:02:37
是的,我保留它。 – Jul 2012-04-22 10:04:41