VectorifyDaHome
VectorifyDaHome copied to clipboard
fix display cutout / notch support
currently the support for notch is broken. mainly because we didn't reassign layoutParams to the view so the new params won't apply.
to solved this. I rewritten the logic and improve the notch handling.
- fixed the bug that layoutParams is not reassigned
- toolbar's background is expanded under the notch area.
- always set
seekbarCardwidth to 50% (no matter the OS version) to make room formoveBtnContainer - handles display cutout from every direction
- changed some layout attributes
- removed
seekbarCardvertical margin in landscape mode because we are setting its width 50% anyway. - added a marginBottom to
seekbarCard. - changed
moveBtnContainermarginEnd to marginRight because we are setting marginRight in the code and marginRight and marginEnd cannot be set at the same time. I also ignored theRtlHardcodedwarning because this won't really break RTL support.
- removed
test screenshots:
I test some scenarios with notch emulation in the developers options menu.
notch on the top and bottom
notch in the corner: