android - 状态栏敏感信息,如 Telegram X

标签 android statusbar telegram

我挖了很多天,没有找到关于 Telegram X 中提供的此功能的信息(最新版本,源代码尚未打开,在 nexus 5x api 27 模拟器上运行)

当应用程序处于“等待网络”状态时,此信息会出现在您的半透明状态栏中,就像这个 gif。

我的问题是,我怎样才能做到这一点? 听起来他们正在使用某种上下文来隐藏状态栏中的内容(查看通知图标和移动网络图标,当消息从顶部滑动时它们会隐藏)

enter image description here

最佳答案

我找到了可以帮助您解决问题的第三方图书馆。

检查这个 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/

相关文章:

Android:帮助处理屏幕方向变化

ios - 实时更改状态栏颜色

android - 修改编译Android Status Bar工程(SystemUI.apk)

node.js - Telegram 客户端 API。如何找到 channel /用户?

telegram - 热门从 Telegram Bot 消息中获取回调数据

安卓应用程序: Background location access not declared

java - 如何将 Action 添加到 libgdx 中的纹理打包程序?

android - 使用矩阵旋转时,我失去了图像的位置

iphone - iOS : Hide status bar in entire app programmatically not even through plist

javascript - 从 Telegram 消息中获取 message_id - node.js