nativescript
Statusleiste
Suche…
Hide / Show - Android
Dies ist eine Statusleiste, die oben auf dem Bildschirm mit Symbolen für die Uhr, Uhr usw. angezeigt wird.
let frame = require("ui/frame");
Verbergen:
frame.topmost().android.activity.getWindow().
getDecorView().setSystemUiVisibility(android.view.View.SYSTEM_UI_FLAG_FULLSCREEN);
Show:
frame.topmost().android.activity.getWindow().
getDecorView().setSystemUiVisibility(android.view.View.SYSTEM_UI_FLAG_VISIBLE );
Statusleiste transparent machen Android
Öffnen Sie APP_Resources/values/styles.xml und fügen Sie die hinzu
<item name="android:windowTranslucentStatus">true</item>
in dem
<style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar"> </style>
Sektion.
Modified text is an extract of the original Stack Overflow Documentation
Lizenziert unter CC BY-SA 3.0
Nicht angeschlossen an Stack Overflow