AndroidShortcuts
项目地址: pcevikogullari/AndroidShortcuts

简介:Example app for shortcuts in design library v25
Example app for shortcuts in design library v25
Demo
Add meta-data before tag in Manifest.xml
Add ShortcutTo add or edit a new shotcut, go to /res/xml/shortcuts.xml :
Handle ActionsTo 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; }