Android--操作系统的SystemBar

来源:互联网 发布:淘宝正版cd价格 编辑:程序博客网 时间:2024/05/16 03:14

在Android4.0之后,控制SystemBar更加的方便了。
首先看有关View的属性:
(ps:回家再把代码贴上来^_^)

1、完全隐藏SystemBar
这种适合全屏的应用使用,不想让SystemBar的出现于隐藏使布局发生改变,比如说视频播放器。

2、沉浸式SystemBar
这种显示效果为SystemBar在内容布局的上面。

3、自动隐藏SystemBar
这种效果为当我们隐藏掉SystemBar之后,然后触摸SystemBar区域的时候,SystemBar会出现,然后隔一段时间之后,SystemBar又会隐藏。

0 0
原创粉丝点击