1. Let the activity be displayed globally to make the system's navigation bar transparent:
(1) You can add the Window property to the activity code:
if (VERSION. Sdk_int >= version_codes. KITKAT) {
GetWindow (). Addflags (WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);//transparent status bar navigation bar
GetWindow (). Addflags (WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
}
(2) You can set different item properties in the style:
<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>
Above please note: The layout needs to add:
Android:cliptopadding= "true"
Android:fitssystemwindows= "true" otherwise the layout view will run to the navigation bar
2. Do not display the title of ativity in style inside <item name= "Android:windownotitle" >TRUE</ITEM> and application inside the manifest.xml, quoting Android:theme= "@style/notitle"
Android activity fullscreen and does not display title