Android Question How set image background statusbar

devmobile

Active Member
Licensed User
I can fullscreen acticity and hide statusbar
Or can set transparent statusbar with app color theme
But i need set image background statusbar with transparent
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
SS-2017-09-15_08.26.57.png


Add this code to the manifest editor:
B4X:
SetApplicationAttribute(android:theme, "@style/Custom")
CreateResource(values-v20, theme.xml,
<resources>
  <style
  name="Custom" parent="@android:style/Theme.Material.NoActionBar">
     <item name="android:windowTranslucentNavigation">false</item>
     <item name="android:windowTranslucentStatus">true</item>
  </style>
</resources>
)
CreateResource(values-v19, theme.xml,
<resources>
  <style
  name="Custom" parent="@android:style/Theme.Holo.NoActionBar">
     <item name="android:windowTranslucentNavigation">false</item>
     <item name="android:windowTranslucentStatus">true</item>
  </style>
</resources>
)
 
Upvote 0
Top