Get button coordinates and detect if finger is over them - Android

前端 未结 4 1373
迷失自我
迷失自我 2020-11-30 07:58

I have 4 buttons in my android app activity. This is what it looks like:

As yo

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 08:49

    karioki 's solution works well. In order to make it work even when we start the move from inside one of the buttons, just add

    android:clickable="false"

    for every button in xml.

提交回复
热议问题