nativescript
StatusBar
Recherche…
Cacher / Montrer - Android
Ceci est une barre d'état que vous voyez en haut de votre écran avec des icônes de battry, clock ....
let frame = require("ui/frame");
Cacher:
frame.topmost().android.activity.getWindow().
getDecorView().setSystemUiVisibility(android.view.View.SYSTEM_UI_FLAG_FULLSCREEN);
Montrer:
frame.topmost().android.activity.getWindow().
getDecorView().setSystemUiVisibility(android.view.View.SYSTEM_UI_FLAG_VISIBLE );
Faire statusBar Transparent android
ouvrez APP_Resources/values/styles.xml et ajoutez le
<item name="android:windowTranslucentStatus">true</item>
dans le
<style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar"> </style>
section.
Modified text is an extract of the original Stack Overflow Documentation
Sous licence CC BY-SA 3.0
Non affilié à Stack Overflow