Skip to content

Run a train on your homescreen using the App Shortcuts API

License

Notifications You must be signed in to change notification settings

nirhart/shortrain

Repository files navigation

Shortrain - Let the fascinating, magnificent and marvelous magic train roll on your screen!

How does it work?

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.

Requires

  • 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!

Demo Demo

This project includes

  • 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.

About

Run a train on your homescreen using the App Shortcuts API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages