This project was developed with the assistance of generative AI tools and owner doesn't have android dev experience.
Draw gesture project for android automation app called Tasker
Draw any shape and do certain actions.
siid8w.mp4
- Open Reddit by drawing R.
- Swipe to control volume.
Config file is in JSON.
"handle": {
"useAccessibility": false,
"autoEnable": false,
"color": "#FFFFFFFF",
"dashInterval": [],
"cornerRadius": 200,
"size": [
30,
500
], ...
}
UI to register gesture and supported actions.
demo.ui.mp4
Control handles via Java code
// show a handle
everyGesture.showHandle("Test");
// remove a handle from showing
everyGesture.removeHandle("Test");
// Get a handle object
handle = everyGesture.get("Test");
// Mute a handle
handle.mute();
handle.unmute();
// Make it not interactable
handle.setInteractable(false);