我挖了很多天,没有找到关于 Telegram X 中提供的此功能的信息(最新版本,源代码尚未打开,在 nexus 5x api 27 模拟器上运行)
当应用程序处于“等待网络”状态时,此信息会出现在您的半透明状态栏中,就像这个 gif。
我的问题是,我怎样才能做到这一点? 听起来他们正在使用某种上下文来隐藏状态栏中的内容(查看通知图标和移动网络图标,当消息从顶部滑动时它们会隐藏)
最佳答案
我找到了可以帮助您解决问题的第三方图书馆。
检查这个 repo https://github.com/fede87/StatusBarAlert
What is this? This is a small library inspired by Telegram X status bar new alert, written in Kotlin. It shows custom message with optional indeterminate progress in status bar area.
关于android - 状态栏敏感信息,如 Telegram X,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48817316/