Need help with StatusBarAlert?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

235 Stars 29 Forks Apache License 2.0 56 Commits 0 Opened issues


Telegram X inspired android status bar alert view

Services available


Need anything else?

Contributors list

# 328,258
25 commits
# 110,879
1 commit

Android Arsenal

What is this?

This is a small library inspired by Telegram X status bar new alert written in Kotlin. It can show custom message with optional indeterminate progress in status bar area. Optional autohide feature can be tweaked with custom duration. When showing, status bar alert kindly hides status bar's icon with SYSTEMUIFLAGLOWPROFILE flag mode, if available from os.

Supported devices

This lib is supported by every device with a SDK level of at least 14 (Android 4+. On Android 4.x the alert will be drawn below the status).

Android X required for v1.1.0 and above, otherwise use old version v1.0.2.

Quick walkthrough


Step 1. Add the JitPack repository to your build file

gradle: add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
    maven { url '' }
Step 2. Add this line to your app's dependencies:
implementation 'com.github.fede87:StatusBarAlert:2.0.0'

Quick Sample

Create a new StatusBarAlert in activities and fragments.

Using Kotlin DSL:

statusBarAlert {
    duration(2, TimeUnit.SECONDS)
    text("Kotlin DSL")

Using Java way:

val statusBarAlertview: StatusBarAlert = StatusBarAlert.Builder([email protected])

//update status bar alert view text at any time: statusBarAlertView.setText("UPDATED!!") //or: statusBarAlertView.setText(R.string.updated)

// show indeterminate progress: statusBarAlertView.showProgress()

// hide indeterminate progress: statusBarAlertView.hideProgress()


Copyright 2018 Federico Marin

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.