Android Question How to apply gradient to status bar?

jtare

Active Member
Licensed User
Thank you for the example project.
I'm using appcompat with no actionbar, I use a toolbar as actionbar (added in the designerview), I had to move 20dip down the toolbar and content panel, then set the same gradient color for the activity background and for the toolbar and seems to work just fine.
 

jtare

Active Member
Licensed User
Status bar height seems to be 25dip, not 20dip. Is this correct? Or depends on the screen?
 

jtare

Active Member
Licensed User
For some reason, now when I tried to input text on a edittext the keyboard covers the view, before it moved up to always make it visible. I tried to add this to the manifest editor but nothing happened, the view gets covered by the keyboard.
B4X:
SetActivityAttribute(Main,  android:windowSoftInputMode, "stateHidden|adjustPan")
I assume this is related with the modifications done to the status bar
 
Last edited:

Erel

Administrator
Staff member
Licensed User
Top