NAXAM / bottomtabbedpage-xamarin-forms

A page control for Xamarin.Forms to place tabs at the bottom.
Apache License 2.0
94 stars 32 forks source link

Snackbar overlapping Bottom Navigation bar #15

Open e-nathan opened 6 years ago

e-nathan commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

@tuyen-vuduc

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

tuyen-vuduc commented 6 years ago

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

Cheers.