Allowing views behind the status bar

时间:2015-07-31 20:52:29

标签: android

I know this question was asked already but the answer does not work. I am trying to put an image behind the status bar. I have tried to accomplish this for some time with many different solutions but I am not getting the solution. Doe's anyone know how to make the layout behind the status bar? I have yet to see a solid example. They didn't even use this in their I/O app otherwise, I wouldn't be asking this question.

Targeting api 21 and greater.

Using NoActionBar

<style name="LogInTheme" parent="Theme.AppCompat.Light.NoActionBar">

</style>

enter image description here

1 个答案:

答案 0 :(得分:0)

看起来你想要一个透明的状态栏。

将此行添加到您的样式中:

<item name="android:windowTranslucentStatus">true</item>