Giter Site home page Giter Site logo

tangnuo / androidbarutils Goto Github PK

View Code? Open in Web Editor NEW

This project forked from byteszero/androidbarutils

0.0 1.0 0.0 21.1 MB

Android 沉浸式(透明)状态栏细研,掘金文章:https://juejin.cn/post/6953176472534122504

License: Apache License 2.0

Java 100.00%

androidbarutils's Introduction

AndroidBarUtils

Android 透明(沉浸式)状态栏细研

Build Status

实现的功能

  • 透明状态栏(非半透明状态栏,个别机型无法适配全透明)
  • 动态改变ToolBar或者自定义的TitleBar颜色,修改背景色即可,不需要动态改变状态栏颜色
  • 状态栏主题模式(黑白色)切换
  • 修复 DrawerLayout 在 4.4 上白边的问题
  • 适配“刘海屏”状态栏
  • 导航栏实现个人认为美观并通配的配色
系统 导航栏配色方案
4.4 黑色
5.0~7.0 1/4透明黑底色+白色导航
8.0及以上 白底+灰色导航主题

未来可能会去实现的功能

  • 动态改变导航栏颜色(5.0及以上可以自己修改实现,目前是写死的配色方案)
  • 状态栏和导航栏主题模式设置分离

预览效果(均为模拟器测试)

  • Android 9.0 gif

Android 9.0 gif

效果图

以上效果均为模拟器测试,如果你的真机测试有问题,请发给我并附上效果图和机型。

使用方式

查看 wiki

下载 APK 测试

AndroidBarUtils APK

androidbarutils's People

Contributors

byteszero avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.