nativescript
Barra de estado
Buscar..
Ocultar / mostrar - Android
Esta es una barra de estado que ves en la parte superior de tu pantalla con íconos de batería, reloj ....
let frame = require("ui/frame");
Esconder:
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 );
Make StatusBar Android transparente
APP_Resources/values/styles.xml y agregue el
<item name="android:windowTranslucentStatus">true</item>
en el
<style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar"> </style>
sección.
Modified text is an extract of the original Stack Overflow Documentation
Licenciado bajo CC BY-SA 3.0
No afiliado a Stack Overflow