OnClickListener issues after ImageButton moved after TranslateAnimation

前端 未结 1 855
执笔经年
执笔经年 2020-12-21 21:44

what should I do to move the imageButton to a new palce and keep the OnClick event?

I have two questions on this:

  1. If I use fillAfter(true), the
1条回答
  •  执笔经年
    2020-12-21 22:06

    The problem is that that Android will only animate the Image of the Button to the new place.

    This means the onClick Area stays at the old place. You also need to change the position of the button at the end of the Animation to move the whole button to the new place and not only its View.

    0 讨论(0)
提交回复
热议问题