另外两种Android沉浸式状态栏实现思路

2019-12-10 19:23:06王旭

关键在于下面两个属性,还有需要在其他子布局添加背景,不然就跟随了最外层的背景,代码部分还是采用网上通用方案,只是不需要自定义的状态栏了,也不需要计算状态栏的高度

android:fitsSystemWindows="true"
android:background="@android:color/holo_green_light"

最终效果

另外两种Android沉浸式状态栏实现思路

以上就是本文的全部内容,希望对大家的学习Android软件编程有所帮助。



注:相关教程知识阅读请移步到Android开发频道。