2018年2月1日 星期四

Completely transparent status bar and navigation bar

Reference:

https://stackoverflow.com/questions/29069070/completely-transparent-status-bar-and-navigation-bar-on-lollipop


Code snippet:


getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
        WindowManager.LayoutParams.
FLAG_LAYOUT_NO_LIMITS);



<style name="FullScreenTheme" parent="@android:style/Theme.Translucent.NoTitleBar.Fullscreen">
    <item name="android:windowDrawsSystemBarBackgrounds">true</item>
</style>

沒有留言: