This is the original text on Android developer anyway, I don't know what I'm aware of. Implementation and transparency with the navigation bar and status bar some gradient effects
1. Setting the theme
<Stylename= "Theme.timetodo" parent = "@android: Style/theme.holo.light" > <! --translucent system bars --> <item name= " android:windowtranslucentstatus "> True</item> <item name= "android:windowtranslucentnavigation ">true</ item></STYLE>
After adding these two properties it is the effect that you can see the ListView has been top to go up to do not know whether the bug checked the information the current solution seems to be to set layout padding to solve
2. Set the color and settings padding
private void initSystemBar() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { setTranslucentStatus(true); SystemBarTintManager tintManager = new SystemBarTintManager(this); tintManager.setStatusBarTintEnabled(true); tintManager.setStatusBarTintResource(R.color.actionbar_bg); SystemBarConfig config = tintManager.getConfig(); listViewDrawer.setPadding(0, config.getPixelInsetTop(true), 0, config.getPixelInsetBottom()); }}
3. Final effect
Resources:
http://mindofaandroiddev.wordpress.com/2013/12/28/ making-the-status-bar-and-navigation-bar-transparent-with-a-listview-on-android-4-4-kitkat/
Http://stackoverflow.com/questions/20781014/translucent-system-bars-and-content-margin-in-kitkat
Android 4.4 status bar Hidden