如何在Facebook的聊天元首实现? [英] How is Facebook Chat Heads implemented?
问题描述
借助的Facebook的Android 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:
- 在上述其他应用程序运行,申请
- 消失的Facebook聊天头
- Having application running above other app
- Disappearing facebook chat heads
这篇关于如何在Facebook的聊天元首实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!