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 Not Showing Below Toolbar When Toolbar is Defined in Layout #44

Open
adam-hurwitz opened this issue Jul 31, 2017 · 2 comments
Open

Comments

@adam-hurwitz
Copy link

adam-hurwitz commented Jul 31, 2017

I'm creating a Toolbar in my XML and the SnackBar is appearing at the top of the screen overlapping the Toolbar rather than below it. I tried creating a view below my Toolbar and using that view as the id in TSnackbar.make(), however the snackbar still shows at the top of the screen.

@adam-hurwitz adam-hurwitz changed the title Snackbar Below Toolbar When Toolbar is Defined in Layout Snackbar Not Showing Below Toolbar When Toolbar is Defined in Layout Jul 31, 2017
@gchristov
Copy link

gchristov commented Aug 1, 2017

I'm seeing the same behaviour here with a custom Toolbar, defined in XML.

Possible solution is to wrap your content under the ToolBar in another CoordinatorLayout. This works for me for now.

@Alond
Copy link

Alond commented Dec 29, 2017

+1
it will be better to call "findSuitableParent" outside the "make" method, if it posible.
TSnackbar.make(findSuitableParent(view),..

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

3 participants