nativescript
Статус бар
Поиск…
Скрыть / показать - андроид
Это панель состояния, которую вы видите поверх экрана с иконками battry, clock ....
let frame = require("ui/frame");
Спрятать:
frame.topmost().android.activity.getWindow().
getDecorView().setSystemUiVisibility(android.view.View.SYSTEM_UI_FLAG_FULLSCREEN);
Шоу:
frame.topmost().android.activity.getWindow().
getDecorView().setSystemUiVisibility(android.view.View.SYSTEM_UI_FLAG_VISIBLE );
Сделать статусBar Прозрачный андроид
откройте APP_Resources/values/styles.xml и добавьте
<item name="android:windowTranslucentStatus">true</item>
в
<style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar"> </style>
раздел.
Modified text is an extract of the original Stack Overflow Documentation
Лицензировано согласно CC BY-SA 3.0
Не связан с Stack Overflow