Facebook Chat Heads如何实现? [英] How is Facebook Chat Heads implemented?
本文介绍了Facebook Chat Heads如何实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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
。
请参阅丹尼尔·扬科夫斯基(Daniel Jankowski)的应用/?utm_source = androiddevdigest =nofollow noreferrer>此博客 >及其在GitHub上的 WindowHead示例。
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 Chat Heads如何实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文