'How to create a custom view in android for swipe direction and positions in android

I want to create a widget like this, kindly help me with how I can create it. Actually, I am creating an auto clicker and auto swiper app and I want to define the swipe direction and area using this widget.

enter image description here



Solution 1:[1]

Found these two gitrepo for auto click. Catch the logic from these. https://github.com/nestorm001/AutoClicker

https://github.com/Nain57/Smart-AutoClicker

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 weblinux