Skip to content Skip to sidebar Skip to footer

Preventing Relayout On Hiding Status Bar (faking System_ui_flag_layout_stable)

I'm working on app that has a list view and a detail view and I animate from the list view to the detail view. While doing this I'd like to hide the status bar at some stage (prefe

Solution 1:

How about FLAG_LAYOUT_IN_SCREEN and FLAG_LAYOUT_INSET_DECOR? Your window will then always extend up underneath the status bar, and you'll need to watch the insets to make sure you're not underlapping it with content, but this way you shouldn't be laid out again when the status bar hides or shows.


Post a Comment for "Preventing Relayout On Hiding Status Bar (faking System_ui_flag_layout_stable)"