fitsSystemWindow作用
2016-08-17 18:35
387 查看
layout属性
英文文档注释为:
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.
经过具体实验,具体的作用就是你的contentview是否忽略actionbar,title,屏幕的底部虚拟按键,将整个屏幕当作可用的空间。正常情况,contentview可用的空间是去除了actionbar,title,底部按键的空间后剩余的可用区域;这个属性设置为true,则忽略,false则不忽略
效果如下:
设置为true
设置为false
英文文档注释为:
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.
经过具体实验,具体的作用就是你的contentview是否忽略actionbar,title,屏幕的底部虚拟按键,将整个屏幕当作可用的空间。正常情况,contentview可用的空间是去除了actionbar,title,底部按键的空间后剩余的可用区域;这个属性设置为true,则忽略,false则不忽略
效果如下:
设置为true
设置为false
相关文章推荐
- bzoj 1020 计算几何
- 64位系统访问注册表SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
- JAVA中的反射机制
- Bootstrap入门基础(六)
- [Android] 彻底了解Binder机制原理和底层实现
- LR遇到问题集锦
- zzuli oj 多校训练(三)【树链剖分--树状数组---STL----二分图----二分----DP】
- Json源生解析
- javaWeb--javaBean
- Linux基础之文件查找工具:locate、find
- Misha and Palindrome Degree
- 高斯消元法模板
- Android内存泄漏分析笔记
- yum install docker报错:Another app is currently holding the yum lock
- MONGODB学习笔记一:入门
- Mysql 主从出现故障
- AndroidStudio监测工具Monitors介绍
- 用JavaScript写一个类似于windows的气泡屏保效果
- 一般处理程序访问session
- 使用Jenkins搭建iOS/Android持续集成打包平台