GoogleChrome / android-browser-helper

The Android Browser Helper library helps developers use Custom Tabs and Trusted Web Activities on top of the AndroidX browser support library.
Apache License 2.0
694 stars 288 forks source link

Set proper paddings when inmersive mode is enabled #424

Open fjtrujy opened 1 year ago

fjtrujy commented 1 year ago

Is your feature request related to a problem? Please describe. It would be really cool if you allow an option to set the view padding/margin especially when the immersive mode is enabled. I would like to avoid producing a scroll when trying to exit from the immersive mode.

Describe the solution you'd like As the official Android documentation says: https://developer.android.com/develop/ui/views/layout/edge-to-edge How the view itself is not accessible from the client's point of view, we can't apply this suggestion, you could either implement yourself or expose the view.

Cheers