Comments (1)
不会影响画面呈现的效果。没遇到什么问题的话,你也可以暂时去除SYSTEM_UI_FLAG_LAYOUT_STABLE。
安卓的doc文档是这么提及SYSTEM_UI_FLAG_LAYOUT_STABLE的:
/**
* Flag for {@link #setSystemUiVisibility(int)}: When using other layout
* flags, we would like a stable view of the content insets given to
* {@link #fitSystemWindows(Rect)}. This means that the insets seen there
* will always represent the worst case that the application can expect
* as a continuous state. In the stock Android UI this is the space for
* the system bar, nav bar, and status bar, but not more transient elements
* such as an input method.
*
* The stable layout your UI sees is based on the system UI modes you can
* switch to. That is, if you specify {@link #SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN}
* then you will get a stable layout for changes of the
* {@link #SYSTEM_UI_FLAG_FULLSCREEN} mode; if you specify
* {@link #SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN} and
* {@link #SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION}, then you can transition
* to {@link #SYSTEM_UI_FLAG_FULLSCREEN} and {@link #SYSTEM_UI_FLAG_HIDE_NAVIGATION}
* with a stable layout. (Note that you should avoid using
* {@link #SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION} by itself.)
*
* If you have set the window flag {@link WindowManager.LayoutParams#FLAG_FULLSCREEN}
* to hide the status bar (instead of using {@link #SYSTEM_UI_FLAG_FULLSCREEN}),
* then a hidden status bar will be considered a "stable" state for purposes
* here. This allows your UI to continually hide the status bar, while still
* using the system UI flags to hide the action bar while still retaining
* a stable layout. Note that changing the window fullscreen flag will never
* provide a stable layout for a clean transition.
*
* <p>If you are using ActionBar in
* overlay mode with {@link Window#FEATURE_ACTION_BAR_OVERLAY
* Window.FEATURE_ACTION_BAR_OVERLAY}, this flag will also impact the
* insets it adds to those given to the application.
*/
public static final int SYSTEM_UI_FLAG_LAYOUT_STABLE = 0x00000100;
文档有些生涩,大致意思应该是要稳定layout布局,以防止content内容区域变化所导致的不稳定性。国内的大多技术博客(郭神),也大多建议添加上这个FLAG,所以我就加上了。如果对于你的app而言,没什么影响的话,就去除吧。
from vegalayoutmanager.
Related Issues (20)
- Problems with space between items. HOT 2
- 出现You must override smoothScrollToPosition to support smooth scrolling HOT 3
- Horizontal recyclerview HOT 1
- RecyclerView as Viewpager with PagerSnapHelper HOT 1
- How to stop auto scroll item? HOT 1
- gradle 引入有问题
- (Illegal state Exception) Crash Issue Solved
- Recycler items gets invisible when scrolling often (API 21)
- How I can get findLastVisibleItemPosition like in LinearLayoutManager ?
- Fragment中使用什么都不展示 HOT 1
- 送给有需要的人 HOT 5
- how to snap it to next item only like viewpager HOT 1
- 加上分页后,显示不正确 HOT 1
- demo显示无内容 HOT 4
- Not visible any view on VegaLayoutManager HOT 8
- child view visibility
- how to add scrollbar to recyclerView?
- E/RecyclerView: You must override smoothScrollToPosition to support smooth scrolling
- recyclew+viewpager显示异常
- To solve the problem of viewpager: an instance of onflinglistener already set.解决ViewPager闪退问题。
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 vegalayoutmanager.