如何创建透明状态栏

时间:2016-04-24 02:46:27

标签: android statusbar

您好我正在尝试为我的最新项目创建透明状态栏,但我无法找到我的Api级别16的解决方案。任何人都可以为我提供创建透明状态栏的解决方案。 here is the sample

1 个答案:

答案 0 :(得分:0)

将FLAG设置为OnCreate方法上方的Java类。 添加那些行。

this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
相关问题