Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toasts are not centered since Android 11 #16074

Open
antonis opened this issue Mar 9, 2022 · 2 comments
Open

Toasts are not centered since Android 11 #16074

antonis opened this issue Mar 9, 2022 · 2 comments

Comments

@antonis
Copy link
Contributor

antonis commented Mar 9, 2022

Expected behavior

Toasts across the app are centered unless this is defined explicitly.

Actual behavior

Since Android 11 the Toast gravity setter has no effect and the Toasts are positioned at the bottom of the screen.
In some cases this may result in actionable buttons being inaccessible for the short time when the Toast is visible.

Before Android 11 After Android 11
154718517-efcaf44c-3e95-4495-841e-274bd0cf2b5a screenshot_20220308-151725

Internal ref p5T066-33e-p2#comment-11570

Tested on Pixel 5, Android 12, WPAndroid 19.4
@antonis
Copy link
Contributor Author

antonis commented Mar 10, 2022

I did a short research and I don't think there is a clear way to resolve this. This article sums up the options to move forward with an Android Toast.
An alternative would be to use a SnackBar and it will also achieve a more consistent UI across the app using the SnackbarSequencer

@dangermattic
Copy link
Collaborator

dangermattic commented Jul 3, 2024

Thanks for reporting! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants