ground-android
ground-android copied to clipboard
[Code health] Simplify applying window inset to components
The main activity subscribes to window inset changes and all fragments listen to that and apply padding/margin/translationY to adjust themselves accordingly.
A lot of code, dedicated for this purpose can be replaced with tuning the xmls directly by separating the components that need adjustment from rest and setting fitsSystemWindows to true
Hi @shobhitagarwal1612 can we close this now?
One or two instances are still remaining. See the linked PR for details
HomeScreenFragment and FeatureDetailsFragment could also use similar refactoring.
Closing this as obsolete.