i think i found a bug. When your in a phone call with the little green bar at top, when you return to your app it doesn't compensate for the bar and the apps "Zero point" shifts. Causing a white gap the width of the bar. During the resize event you would have to move your app to a negative top to bring it up.
This code I tried works but imo its simply a work around.
B4X:
Private Sub Page1_Resize(Width As Int, Height As Int)
If Height < (ScreenHeight - 20) Then
pnlTop.Top = -20 ' must have stupid phone bar at top
Else
pnlTop.Top = 0
End If
End Sub
I'm unable to reproduce it. I've created a layout with a panel that is anchored to all sides. During a call when the green bar is visible that panel was resized automatically as expected.
when phone calls are made, the label at the top moves down too far creating a white space. The phone call info (green bar) is present during a call, along with an extra blank white space between that and the top label.
I have tried a few different things to get it to work. This attached example uses anchoring to both (I think the one above anchored only to top)
It is a mistake to set the vertical anchor to BOTH in this case. Setting it to BOTH means that the distances from the label to the page top and to the page bottom edge are constant. This is not what you want here. It should be TOP.
I see the gap. Note that it doesn't happen with NavigationController. It will be checked.