AndroidShortcuts

项目地址: pcevikogullari/AndroidShortcuts 简介:Example app for shortcuts in design library v25

Example 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;        }

更多相关文章

  1. Android(安卓)收缩展开动画
  2. Android改变MAC地址
  3. Android重力感应实现方式简介
  4. Android之Window类简介
  5. Android小项目——简单计算器的实现
  6. Android(安卓)启动流程简介
  7. 借一个项目谈Android应用软件架构,你还在套用MVP 或MVVM吗
  8. Android(安卓)架构简介
  9. WebView中的视频播放

随机推荐

  1. Android(安卓)之最新最全的Intent传递数
  2. Android(安卓)OnClickListener 使用总结
  3. andorid中网络图片下载、保存以及在相册
  4. android 多线程断点续传下载 二
  5. Android之LayoutInflater了解(20190109)
  6. Android(安卓)中文 API (19) ―― TwoLineL
  7. adb pull命令复制android数据库文件.db到
  8. Android(安卓)Shape绘制实用圆圈
  9. Android(安卓)为应用创建、删除桌面快捷
  10. Android(安卓)-- AppWidget 进阶篇