If you want to customize the notification bar behavior in Nativescript, head over to
APP_resources/Android/src/main/res/values-21/styles.xml
. This is where you can tweak settings like making the notification bar non-translucent and adjusting padding when no ActionBar is present.
https://i.sstatic.net/Yy6PR.png
For a detailed guide on these configurations, check out this link: https://github.com/NativeScript/NativeScript/issues/6795
PS1: Below is the code snippet for your convenience:
<!-- Application theme -->
<style name="AppThemeBase21" parent="AppThemeBase">
<item name="android:windowTranslucentStatus">false</item>
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item>
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item>
<item name="android:windowLayoutInDisplayCutoutMode">default</item>
</style>
<style name="AppTheme" parent="AppThemeBase21">
</style>
<!-- Default style for DatePicker - in spinner mode -->
<style name="SpinnerDatePicker" parent="android:Widget.Material.Light.DatePicker">
<item name="android:datePickerMode">spinner</item>
</style>
<!-- Default style for TimePicker - in spinner mode -->
<style name="SpinnerTimePicker" parent="android:Widget.Material.Light.TimePicker">
<item name="android:timePickerMode">spinner</item>
</style>
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase">
<item name="android:elevation">4dp</item>
<!-- <item name="android:paddingTop">24dp</item> -->
</style>