如何在Facebook的聊天元首实现? [英] How is Facebook Chat Heads implemented?

查看:89
本文介绍了如何在Facebook的聊天元首实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

借助的Facebook的Andr​​oid Messenger应用程序有一个叫聊天头功能。它奠定了一个聊天图标,窗口在其他应用程序的顶部。这是如何实现的?其中Android的API用于?

The Facebook Android Messenger application has a feature called Chat Heads. It lays a chat icon and window over the top of other applications. How is this achieved? Which Android APIs are used?

推荐答案

搜索权限 android.permission.SYSTEM_ALERT_WINDOW WindowManager.LayoutParams.TYPE_SYSTEM_ALERT

请参阅<一href="https://codingshark.word$p$pss.com/2015/02/01/how-to-draw-on-top-of-other-applications/?utm_source=androiddevdigest">this博文通过丹尼尔·扬科夫斯基和他的 WindowHead样在GitHub上。

See this blogpost by Daniel Jankowski and his WindowHead sample on GitHub.

在除了已经列出重复的答案,也看到了:

In addition to the duplicate answer already listed, also see:

  • Having application running above other app
  • Disappearing facebook chat heads

这篇关于如何在Facebook的聊天元首实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆