状态栏敏感信息,例如Telegram X [英] Status Bar sensitive information like Telegram X

查看:116
本文介绍了状态栏敏感信息,例如Telegram X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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)

当应用程序处于等待网络"状态时,此信息将显示在透明状态栏中,例如gif.

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)

推荐答案

我找到了一个第三方库,可以帮助您归档问题.

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

检查此仓库 https://github.com/fede87/StatusBarAlert

这是什么?这是一个受Kotlin编写的受Telegram X状态栏新警报启发的小型图书馆.它在状态栏区域显示自定义消息以及可选的不确定进度.

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.

这篇关于状态栏敏感信息,例如Telegram X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆