AndroidShortcuts
16lz
2021-12-04
AndroidShortcuts
项目地址: pcevikogullari/AndroidShortcuts 简介:Example app for shortcuts in design library v25Example app for shortcuts in design library v25
Demo
Manifest
Add meta-data before tag in Manifest.xml
Add Shortcut
To add or edit a new shotcut, go to /res/xml/shortcuts.xml :
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; }
更多相关文章
- Android(安卓)收缩展开动画
- Android改变MAC地址
- Android重力感应实现方式简介
- Android之Window类简介
- Android小项目——简单计算器的实现
- Android(安卓)启动流程简介
- 借一个项目谈Android应用软件架构,你还在套用MVP 或MVVM吗
- Android(安卓)架构简介
- WebView中的视频播放