Status Bar sensitive information like Telegram X

痴心易碎 提交于 2019-12-12 08:04:24

问题


I`m digging for many days and didn't found the information about this functionality that presents in Telegram X (newest version which the source code isn't opened yet, running on nexus 5x api 27 emulator)

When application is in "waiting for network" , this information appears inside your translucid status bar, like this gif.

My questions is, how could I achieve this? Sounds like they are using some kind of context to hide content inside status bar (look at notification icons and mobile network icons, they hide when the msg slide from top)


回答1:


I found a third party library who can help you to archieve your question.

Check this 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.



来源:https://stackoverflow.com/questions/48817316/status-bar-sensitive-information-like-telegram-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!