This is an #AndroidExperiments https://www.androidexperiments.com/experiment/shortrain
The app starts with 2 dynamic shortcuts (Rail and Starting point). Each time you add a new rail, the id of the Rail dynamic shortcut changes and the previous id is removed, allowing the pinned rail shortcut to become independent of the dynamic rail shortcut, and allowing you to add one more rail to the screen with a different direction.
- Min Sdk version of 25 (Android 7.1)
- Tested with Pixel Launcher and Google Launcher
Do you find trains enjoyable? how about Android? do you like the new App shortcuts of Android Nougat? If so - then this is the project for you!
- Working with app shortcuts API.
- TextureView drawing and UI manipulations.
- Taking advantage of Google Pixel launcher / Google Now launcher responsiveness.
- Manipulation of the dynamic app shortcuts api together with getSourceBounds for icon location detection.