Comments (3)
@cctvjavascript 因为主布局必须是自定义颜色的状态栏和导航栏,相当于 setColorBar 方法
from ultimatebar.
我想问的是为啥是addView(状态栏,0)和addView(导航View,1)而不是addView(导航栏)和addView(状态栏View);DecorView本身就是FrameLayout的一个子类,而你在创建状态栏和导航栏的时候有给他们设置FrameLayout.Paramter的Gravity属性;所以addView(状态栏)和addView(状态栏,0)应该是相同的才对呀?
from ultimatebar.
@cctvjavascript 但是抽屉也是添加到 DecorView 上面的,如果直接 addView(状态栏) 就会出现一个问题,就是添加的状态栏会把抽屉也覆盖住,而我需要的效果是不覆盖抽屉的状态栏和导航栏
from ultimatebar.
Related Issues (20)
- 兼容Fragment吗? HOT 1
- 我用沉浸式状态栏,上面一整条都白色 HOT 1
- 在7.1.1的手机无效果 HOT 1
- 设置状态栏深色字体 HOT 2
- android 4.4.2 深浸式透明状态栏和隐藏所有 动态切换问题
- 在魅族pro7上 7.0系统 图片沉浸式无效 HOT 1
- 如何只隐藏导航而不隐藏状态栏 HOT 2
- android:Theme.Holo 主题下不能设置导航栏全透明 HOT 3
- Can this lib support landscape? HOT 1
- 使用沉浸式能否不加android:fitsSystemWindows="true" HOT 1
- Set background and foreground color of status bar and navigation bar when make them hidden HOT 1
- 一个沉浸式Activity下有多个Fragment,有些Fragment需要沉浸式,有些不需要,能设置么? HOT 1
- 布局设置背景时出现的一个小问题 HOT 7
- 6.0以下如何设置字体和图标为灰色?设置statusDark无效 HOT 1
- 项目没用到kotlin,就不能用? HOT 1
- Doesn't work with DataBinding (ViewModel) HOT 1
- 状态栏为白色时 HOT 1
- 修改状态栏时,导航栏变成了黑色 HOT 1
- applyNavigation(false)无效,虚拟按钮与布局重叠 HOT 1
- 华为mate30 pro状态栏显示重叠 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ultimatebar.