Disable All Touch Screen Interactions While Animation

前端 未结 4 802
醉梦人生
醉梦人生 2020-12-29 07:55

I wish to disable all the touch screen interactions while an animation is being displayed. I don\'t wish to use the setClickable() method on the buttons at the

4条回答
  •  渐次进展
    2020-12-29 08:36

    Easy way to implement that is add transaperent layout over it (add it in your xml fill parent height and width).

    In the animation start: transaparentlayout.setClickable(true);

    In the animation end: transaparentlayout.setClickable(false);

提交回复
热议问题