nispok/snackbar

Сustom height of Snackbar

Opened this issue · 8 comments

Hi,
thank you for your hard work and awesome library!

Is there any way to set custom height to Snackbar? Something like:

SnackbarManager.show(
                Snackbar.with(context)
                        .text("Hello, world!")
                        .height(200) // height in dp
                        .duration(Snackbar.SnackbarDuration.LENGTH_LONG));

Thank you in advance!

Mmm this has been asked a few times but I want to stay as close as possible to the design guidelines. That's why the single-line and multi-line enums are forced

@romangromov do you mean a custom height or the possibility of having more lines?

@wmora exactly custom height, not more extra lines. I really respect guidelines, but I need this feature for one of my projects

Me too @wmora.

I have a chat application with a chat edit text at the bottom. Whenever a snackbar shows, it dosent cover entirely the edittext region, making it ugly.

If the snackbar's height could be adjusted, it would cover the entire edittext region, making for a nicer UI and UX.

Thanks,
Ivan

orrc commented

Same here.

I have a UI element which is aligned to the pixel grid, but the Snackbar that appears in front of it is a bit smaller, so it looks ugly.

Being able to set an exact px value (or being able to pass in an R.dimen) as the height would be great.

danpe commented

👍

It'd be super cool.

right!1