All Projects → Zackratos → Ultimatebarx

Zackratos / Ultimatebarx

Licence: apache-2.0
Make Android transparent statusbar and navigationbar easy.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Ultimatebarx

Systemuihelper
Helper for dealing with Android System UI visibility
Stars: ✭ 108 (-87.71%)
Mutual labels:  statusbar, navigationbar
Uiwidget
一个集成TabLayout、UIAlertDialog、UIActionSheetDialog、UIProgressDialog、TitleBarView(自带沉浸式标题栏)、CollapsingTitleBarLayout、RadiusView(圆角及状态背景设置View解放shape文件)、KeyboardHelper(软键盘控制及遮挡控制类)、StatusViewHelper(状态栏沉浸帮助类)、NavigationViewHelper(导航栏沉浸式帮助类)、AlphaViewHelper(View透明度控制帮助类) 等项目常用UI库
Stars: ✭ 400 (-54.49%)
Mutual labels:  statusbar, navigationbar
Immersionbar
android 4.4以上沉浸式状态栏和沉浸式导航栏管理,适配横竖屏切换、刘海屏、软键盘弹出等问题,可以修改状态栏字体颜色和导航栏图标颜色,以及不可修改字体颜色手机的适配,适用于Activity、Fragment、DialogFragment、Dialog,PopupWindow,一句代码轻松实现,以及对bar的其他设置,详见README。简书请参考:http://www.jianshu.com/p/2a884e211a62
Stars: ✭ 10,030 (+1041.07%)
Mutual labels:  statusbar, navigationbar
Edge To Edge
Full screen Android apps using simple Kotlin DSL
Stars: ✭ 118 (-86.58%)
Mutual labels:  statusbar, navigationbar
Ypnavigationbartransition
A Full functional UINavigationBar framework for making bar transition more natural! You don't need to call any UINavigationBar api, implementing YPNavigationBarConfigureStyle protocol for your view controller instead. (类似微信 iOS Navigation Bar 的切换方案)
Stars: ✭ 725 (-17.52%)
Mutual labels:  statusbar, navigationbar
Wrnavigationbar swift
WRNavigationBar which allows you to change NavigationBar's appearance dynamically
Stars: ✭ 576 (-34.47%)
Mutual labels:  statusbar, navigationbar
Wrnavigationbar
超简单!!! 一行代码设置状态栏、导航栏按钮、标题、颜色、透明度,移动等 WRNavigationBar which allows you to change NavigationBar's appearance dynamically
Stars: ✭ 2,923 (+232.54%)
Mutual labels:  statusbar, navigationbar
Ultimatebar
[停止维护]Transparent statusbar and navigationbar
Stars: ✭ 655 (-25.48%)
Mutual labels:  statusbar, navigationbar
Easynavigation
一款超级简单的导航条管理工具。完全自定义导航条。没有UINavigationBar 和 UINavigationItem 这两个类。完全是对UIView的操作。
Stars: ✭ 393 (-55.29%)
Mutual labels:  navigationbar
Yabar
A modern and lightweight status bar for X window managers.
Stars: ✭ 646 (-26.51%)
Mutual labels:  statusbar
Convex bottom bar
A Flutter package which implements a ConvexAppBar to show a convex tab in the bottom bar. Theming supported.
Stars: ✭ 345 (-60.75%)
Mutual labels:  navigationbar
Kmnavigationbartransition
A drop-in universal library helps you to manage the navigation bar styles and makes transition animations smooth between different navigation bar styles while pushing or popping a view controller for all orientations. And you don't need to write any line of code for it, it all happens automatically.
Stars: ✭ 3,274 (+272.47%)
Mutual labels:  navigationbar
Yubiswitch
OSX status bar application to enable/disable Yubikey Nano
Stars: ✭ 653 (-25.71%)
Mutual labels:  statusbar
Tlyshynavbar
Unlike all those arrogant UINavigationBar, this one is shy and humble! Easily create auto-scrolling navigation bars!
Stars: ✭ 3,780 (+330.03%)
Mutual labels:  navigationbar
Jmcs
Java framework to homogenize your GUI across all the 3 main desktop OS, and further integrates your app to them.
Stars: ✭ 5 (-99.43%)
Mutual labels:  statusbar
Eachnavigationbar
A custom navigation bar for each view controller.
Stars: ✭ 314 (-64.28%)
Mutual labels:  navigationbar
Fapanels
FAPanels - Swift
Stars: ✭ 850 (-3.3%)
Mutual labels:  statusbar
Animatedbottombar
A customizable and easy to use BottomBar navigation view with sleek animations, with support for ViewPager, ViewPager2, NavController, and badges.
Stars: ✭ 797 (-9.33%)
Mutual labels:  navigationbar
Swipeviewcontroller
SwipeViewController is a Swift modification of RKSwipeBetweenViewControllers - navigate between pages / ViewControllers
Stars: ✭ 636 (-27.65%)
Mutual labels:  navigationbar
Androidnavigation
A library managing navigation, nested Fragment, StatusBar, Toolbar for Android
Stars: ✭ 636 (-27.65%)
Mutual labels:  statusbar

UltimateBarX

一款方便的设置状态栏和导航栏的各种效果的框架

gitee 地址:UltimateBarX

详细介绍:这就是 github 上最好用的 Android 状态栏导航栏库

  • 可以设置各种效果,透明、半透明、固定颜色、布局是否侵入等
  • 状态栏和导航栏分开设置,互不影响
  • 支持 Android 4.4 以上,各系统版本的现实效果高度统一
  • 支持 ActivityFragment
  • 同一个 ActivityFragment 可以多次设置不同的效果
  • 适配刘海屏、滴水屏、挖孔屏、全面屏
  • 适配 miui、emui、funtouch 等 rom
  • 适配横屏、竖屏

使用方法

在 gradle 中添加

dependencies {
    implementation 'com.zackratos.ultimatebarx:ultimatebarx:0.5.1'
}

ActivityFragment

val config = BarConfig.newInstance()          // 创建配置对象
    .fitWindow(true)                          // 布局是否侵入状态栏(true 不侵入,false 侵入)
    .color(Color.RED)                         // 状态栏背景颜色(色值)
    .colorRes(R.color.deepSkyBlue)            // 状态栏背景颜色(资源id)
    .drawableRes(R.drawable.bg_gradient)      // 状态栏背景 drawable
    .light(false)                             // light模式
                                              // 状态栏字体 true: 灰色,false: 白色 Android 6.0+
                                              // 导航栏按钮 true: 灰色,false: 白色 Android 8.0+

UltimateBarX.with(this)                       // 对当前 Activity 或 Fragment 生效
    .config(config)                           // 使用配置
    .applyStatusBar()                         // 应用到状态栏
    
UltimateBarX.with(this)                       // 对当前 Activity 或 Fragment 生效
    .config(config)                           // 使用配置
    .applyNavigationBar()                     // 应用到导航栏

也可以直接链式调用

UltimateBarX.with(this)
    .fitWindow(true)  
    .color(Color.BLACK)
    .colorRes(R.color.deepSkyBlue)
    .drawableRes(R.drawable.bg_gradient)
    .light(false)
    .applyStatusBar()

使用 transparent 方法可以快速设置透明效果

UltimateBarX.with(this)
    .transparent()
    .applyStatusBar()

跟下面的写法效果是一样的

UltimateBarX.with(this)
    .fitWindow(false)
    .color(Color.TRANSLUCENT)
    .applyStatusBar()

使用 get 方法可以在上一次的基础上修改

例如,先用下面的代码实现状态栏变红色,不侵入,非 light 模式

UltimateBarX.with(this)
    .color(Color.RED)
    .fitWindow(true)
    .light(false)
    .applyStatusBar()

然后需要设置 light 模式,其他效果保持不变,直接用下面的方法即可

UltimateBarX.get(this)
    .light(true)
    .applyStatusBar()

当布局可侵入状态栏或导航栏时,如果需要给某个 View 增加状态栏或者导航栏的高度,可以

UltimateBarX.addStatusBarTopPadding(targetView)
UltimateBarX.addNavigationBarBottomPadding(targetView)

// 如果是 kotlin,可以直接使用扩展方法
targetView.addStatusBarTopPadding()
targetView.addNavigationBarBottomPadding()

ProGuard

-keep class com.zackratos.ultimatebarx.library.** { *; }
-keep public class * extends androidx.fragment.app.Fragment { *; }

截图

 

 

 

Change Log

CHANGELOG

联系我

在使用中遇到任何问题,欢迎加我微信交流

License

Copyright 2020 Zackratos

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].