Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pcevikogullari/AndroidShortcuts
Example app for shortcuts
https://github.com/pcevikogullari/AndroidShortcuts
android android-shortcuts shortcut shortcuts
Last synced: about 1 month ago
JSON representation
Example app for shortcuts
- Host: GitHub
- URL: https://github.com/pcevikogullari/AndroidShortcuts
- Owner: pcevikogullari
- License: mit
- Created: 2016-10-21T12:37:57.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-27T14:13:12.000Z (over 7 years ago)
- Last Synced: 2024-08-02T01:25:30.545Z (4 months ago)
- Topics: android, android-shortcuts, shortcut, shortcuts
- Language: Java
- Homepage:
- Size: 7.62 MB
- Stars: 336
- Watchers: 6
- Forks: 45
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-android-ui - AndroidShortcuts - 快捷方式示例app (其他)
README
# Android Shortcuts
Example app for shortcuts in design library v25
### Demo
![Demo 1](https://raw.githubusercontent.com/pcevikogullari/AndroidShortcuts/master/shortcut1.gif) ![Demo 1](https://raw.githubusercontent.com/pcevikogullari/AndroidShortcuts/master/shortcut2.gif)### Manifest
Add meta-data before `````` tag in Manifest.xml
``````
### Add Shortcut
To add or edit a new shotcut, go to /res/xml/shortcuts.xml :
```sh
```
### Handle Actions
To handle shortcuts, just add new constant:
```
private final static String CUSTOM_ACTION = "custom_action";
```and check the intent for custom action :
```
switch (getIntent().getAction()){
case CUSTOM_ACTION:
textView.setText(CUSTOM_ACTION);
break;
default:
break;
}
```