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

Snackbar overlapping Bottom Navigation bar #15

Open
e-nathan opened this issue Apr 7, 2018 · 3 comments
Open

Snackbar overlapping Bottom Navigation bar #15

e-nathan opened this issue Apr 7, 2018 · 3 comments

Comments

@e-nathan
Copy link

e-nathan commented Apr 7, 2018

Is it possible to move the Snackbar above Bottom Navigation bar.

I have created the snackbar like this

var view = ((Activity)Forms.Context).FindViewById(Android.Resource.Id.Content); var snack = Snackbar.Make(view, message, duration); if (actionText != null && action != null) snack.SetAction(actionText, action); snack.Show();

But the snackbar overlaps the bottom bar.

image

@tuyen-vuduc
Copy link
Contributor

Hey,

SnackBar requires to have an anchor view to base on. You anchor SnackBar to the whole screen content, that's why it's overlapping. By now with nature of XF, it isn't ok to avoid this issue. Plz try creating a custom Effect, I guess it might work.

Cheers.

@e-nathan
Copy link
Author

e-nathan commented Apr 8, 2018

@tuyen-vuduc

I should create a custom Effect for the snackbar ?
Thanks again

@tuyen-vuduc
Copy link
Contributor

It's worth to try out. I haven't tried it yet.

Cheers.

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

No branches or pull requests

2 participants