Code Monkey home page Code Monkey logo

statusbar's Issues

老哥,在CoordinatorLayout+AppBarLayout+Toolbar使用有点问题

我想让状态栏透明,文字黑色,在toolbar上方时候是和toolbar背景色一致的,当toolbar折叠的时候只能看到状态栏的文字,toolbar隐藏,就是我原来做的下面视频中的效果,但是是用的window.addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS)还要给toolbar写死顶部边距,用了你的库之后会是后面两张图上的效果,第一个就只是设置了immersive(toolbar),第二个是另外设置了android:statusBarColor和android:windowLightStatusBar的🤔

https://user-images.githubusercontent.com/54784104/148235284-f9af4112-b7b3-4da8-96ff-26e5d9f44a7b.mp4
微信图片_20220105223134
微信图片_20220105223128

在Fragment中如何使用

一般在MainActivity+BottomNavigationView+Fragment的页面结构中,假如首页Fragment的状态栏是白色,我的Fragment中状态栏是渐变色,那么如何在Fragment中使用?

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.