All Projects → fede87 → Statusbaralert

fede87 / Statusbaralert

Licence: apache-2.0
Telegram X inspired android status bar alert view

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Statusbaralert

Uiwidget
一个集成TabLayout、UIAlertDialog、UIActionSheetDialog、UIProgressDialog、TitleBarView(自带沉浸式标题栏)、CollapsingTitleBarLayout、RadiusView(圆角及状态背景设置View解放shape文件)、KeyboardHelper(软键盘控制及遮挡控制类)、StatusViewHelper(状态栏沉浸帮助类)、NavigationViewHelper(导航栏沉浸式帮助类)、AlphaViewHelper(View透明度控制帮助类) 等项目常用UI库
Stars: ✭ 400 (+86.92%)
Mutual labels:  alert, statusbar
React Native Statusbar Alert
A status bar alert (e.g. in-call, recording, navigating) for React Native
Stars: ✭ 221 (+3.27%)
Mutual labels:  alert, statusbar
Chinese Lunar Calendar For Mac
Chinese Lunar Calendar for Mac
Stars: ✭ 150 (-29.91%)
Mutual labels:  statusbar
Pmalertcontroller
PMAlertController is a great and customizable alert that can substitute UIAlertController
Stars: ✭ 2,397 (+1020.09%)
Mutual labels:  alert
Scout
可能是东半球最灵活的 URL 监控系统
Stars: ✭ 174 (-18.69%)
Mutual labels:  alert
Alerttoast
Create Apple-like alerts & toasts using SwiftUI
Stars: ✭ 151 (-29.44%)
Mutual labels:  alert
Emalertcontroller
EMAlertController is a beautiful alternative to the stock iOS UIAlertController
Stars: ✭ 182 (-14.95%)
Mutual labels:  alert
Macos Menubar Wireguard
macOS menubar icon for WireGuard/wg-quick
Stars: ✭ 144 (-32.71%)
Mutual labels:  statusbar
Awesome Prometheus Alerts
🚨 Collection of Prometheus alerting rules
Stars: ✭ 3,323 (+1452.8%)
Mutual labels:  alert
Bdialog
Extend the Bootstrap Modal features, making dialog more functions and easier to use, dialog type including modal, alert, mask and toast types
Stars: ✭ 174 (-18.69%)
Mutual labels:  alert
React Popup
React popup component
Stars: ✭ 198 (-7.48%)
Mutual labels:  alert
Notiflix
Notiflix is a JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.
Stars: ✭ 172 (-19.63%)
Mutual labels:  alert
Airpodsbattery Monitor For Mac
Simple Widget to display your AirPods battery levels from the Mac Status bar
Stars: ✭ 165 (-22.9%)
Mutual labels:  statusbar
Sweetalert2
A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies.
Stars: ✭ 13,929 (+6408.88%)
Mutual labels:  alert
Alertifyjs
A javascript framework for developing pretty browser dialogs and notifications.
Stars: ✭ 1,922 (+798.13%)
Mutual labels:  alert
Flutter statusbarcolor
A package can help you to change your flutter app's statusbar's color or navigationbar's color programmatically.
Stars: ✭ 203 (-5.14%)
Mutual labels:  statusbar
Zebra dialog
A small, compact, and highly configurable jQuery plugin for creating beautiful modal dialog boxes
Stars: ✭ 147 (-31.31%)
Mutual labels:  alert
Dwm Bar
A modular statusbar for dwm
Stars: ✭ 171 (-20.09%)
Mutual labels:  statusbar
Tfpopup
🚀🚀🚀TFPopup不生产弹框,它只是弹框的弹出工🚀🚀🚀默认支持多种动画方式一行调用,支持完全自定义动画.
Stars: ✭ 182 (-14.95%)
Mutual labels:  alert
Spstorkcontroller
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Stars: ✭ 2,494 (+1065.42%)
Mutual labels:  alert

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 SYSTEM_UI_FLAG_LOW_PROFILE 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

Gradle

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 'https://jitpack.io' }
	}
}
Step 2. Add this line to your app's dependencies:

implementation 'com.fede987:status-bar-alert:1.2.0'


Quick Sample

Show a new status bar alert:

val statusBarAlertview: StatusBarAlertView = StatusBarAlert.Builder([email protected])
                       .autoHide(true)
                       .withDuration(100)
                       .showProgress(true)
                       .withText("autohide!")
                       .withAlertColor(R.color.colorPrimaryDark)
                       .withTextColor(R.color.colorAccent)
                       .withIndeterminateProgressBarColor(R.color.colorAccent)
                       .withTypeface(typeface)
                       .build()
                       
                       
//update status bar alert view text at any time:
statusBarAlertView.updateText("UPDATED!!")
//or:
statusBarAlertView.updateText(R.string.updated)
 
 
// show indeterminate progress:
statusBarAlertView.showIndeterminateProgress()
 
// hide indeterminate progress:
statusBarAlertView.hideIndeterminateProgress()
 

Hide all status bar alerts for current activity with an optional "on hidden" callback:

StatusBarAlert.hide([email protected]) {
    // onHidden callback
    Toast.makeText([email protected], "Alert has been hidden.", Toast.LENGHT_SHORT).show()
}

// or just call:

StatusBarAlert.hide([email protected])

License

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

   http://www.apache.org/licenses/LICENSE-2.0

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].