Status Bar sensitive information like Telegram X
Asked Answered
M

1

6

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)

enter image description here

Monoploid answered 15/2, 2018 at 22:25 Comment(6)
Possible duplicate of How do I show text in android system status barCramer
@Cramer well , I checked you link and he didnt faded out other status bar icons, like mobile network , notification icons on the left. I think that TelegramX are using some trick to do this effect but I didnt get yetMonoploid
Good point. Looks like an overlay with alpha 1 over parts of the status bar that they wanted to hide, and no overlay/overlay with alpha 0 on parts of the status bar they wanted to keep showing.Cramer
Hey, I have found a lib to help you. Check this one github.com/fede87/…Vtarj
@Vtarj please post this link as answer , I will close the question ;)Monoploid
done! hope it helpsVtarj
V
3

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.

Vtarj answered 18/7, 2018 at 19:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.