nativescript
Pasek stanu
Szukaj…
Ukryj / pokaż - Android
Jest to pasek stanu widoczny na górze ekranu z ikonami walki, zegara ...
let frame = require("ui/frame");
Ukryć:
frame.topmost().android.activity.getWindow().
getDecorView().setSystemUiVisibility(android.view.View.SYSTEM_UI_FLAG_FULLSCREEN);
Pokazać:
frame.topmost().android.activity.getWindow().
getDecorView().setSystemUiVisibility(android.view.View.SYSTEM_UI_FLAG_VISIBLE );
Ustaw statusBar Przezroczysty android
otwórz APP_Resources/values/styles.xml i dodaj
<item name="android:windowTranslucentStatus">true</item>
w
<style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar"> </style>
Sekcja.
Modified text is an extract of the original Stack Overflow Documentation
Licencjonowany na podstawie CC BY-SA 3.0
Nie związany z Stack Overflow