nativescript
ステータスバー
サーチ…
非表示/表示 - アンドロイド
これはステータスバーで、あなたの画面の上に戦闘、時計のアイコンが表示されます。
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 );
statusBarを透明なアンドロイドにする
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