android.support.design.widget.CoordinatorLayout中 android:fitsSystemWindows="true"属性的作用
2016-03-17 07:08
681 查看
android 布局xml中 android:fitsSystemWindows="true"的原文解析为:
Boolean internal attribute to adjust view layout based on system windows such as the status bar. If true, adjusts the padding of this view to leave space for the system windows. Will only take effect if this view is in a non-embedded activity.
内置的一个布尔值属性,通过其去调整基于系统窗口的视图布局,例如状态栏,如果该值为真,调整这个视图的内边距与系统窗口的距离,只有该view是non-embedded(非嵌入的)的activity才会产生影响。
即在开放过程中设计应用程序布局时当考虑当系统窗口的影响时,设置该值,如果为true,将自动调整系统窗口布局来适应你自定义的布局。例如:当系统有状态栏,你的应用也存在状态栏时便可以设置为ture。
Boolean internal attribute to adjust view layout based on system windows such as the status bar. If true, adjusts the padding of this view to leave space for the system windows. Will only take effect if this view is in a non-embedded activity.
内置的一个布尔值属性,通过其去调整基于系统窗口的视图布局,例如状态栏,如果该值为真,调整这个视图的内边距与系统窗口的距离,只有该view是non-embedded(非嵌入的)的activity才会产生影响。
即在开放过程中设计应用程序布局时当考虑当系统窗口的影响时,设置该值,如果为true,将自动调整系统窗口布局来适应你自定义的布局。例如:当系统有状态栏,你的应用也存在状态栏时便可以设置为ture。
相关文章推荐
- Java 中如何对 Iterator<Text> values 实现两次遍历
- UI控件--UIScrollView
- IOS学习 UIDatePicker 省市区 三联动
- Symfony2中被遗弃的getRequest()方法分析
- UI组件——TextView
- mysql Column 'dbvalue' in where clause is ambiguous解决方案
- MySQL提示:The server quit without updating PID file问题的解决办法
- 解决The current branch is not configured for pull No value for key branch.master.
- easyui datagrid分页
- 快速排序(Quicksort)
- UIImage使用
- 水果切片(Cut fruit game)
- dpkg工具之dpkg-checkbuilddeps
- UIAlertController
- easyui datagrid列使用按钮的一些心得
- java 生成22位UUID 改造
- 使用audioUint 播放音频流的时候,出现模拟器有声音,真机没声音现象,可能原因与解决办法
- VC编译没有错误,exe文件操作数据库时报错,No value given for one or more required parameters
- 不在编辑状态下的UITableView多选
- Hive运行报错整理01