Android Question Automatic Activity Resize

EvgenyB4A

Active Member
Licensed User
Longtime User
I have Android 5.1 device that has a custom function to show/hide navigation bar by broadcast sending.
The function does implement show and hide the bar, but the activity height doesn't change and after hiding there is black rectangle in place of bar. If you then restart the app the activity size is changed.
At the same application that was created by Android Studio the activity size is automatically changed after hide/show the bar.
I'd like to see the same behavior from B4A.
 

Cableguy

Expert
Licensed User
Longtime User
After hiding thé bar, call activity.invalidate to force a redraw
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Then re-run the designer scripts...
 
Upvote 0

EvgenyB4A

Active Member
Licensed User
Longtime User
It also doesn't help. I think the problem is that the size of activity is not recalculated after show/hiding the bar.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
As a last resort, try to call activity resume... but keep in mind that, if you have volatile data, you need to manage it too
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Shouldn't be needed... can you reproduce it in a "simple" project and export it as zip?
 
Upvote 0
Top