HeyAlex/BottomDrawer

Predefined height and Parameters

cherimo opened this issue · 4 comments

Hey There,

Nice Library, my compliments for your work.

I have more 2 questions then bugs.
Is it possible to give it a predefined height when you open the bottom drawer? Now it always goes half the screen first.
And then when you slide it a bit it goes to the right height.

And my second question is it possible to give it some parameters with it when you open the bottom drawer?
So that for example I can show a Profile fragment.

Thank you in advance.

Hi!

Yes, it's always opens to half of a screen. We probably need to make an api for half ratio to let change this behavior.

Need to make an api to configure default state here

I can try to look on this, but can't promise when it happens. It would be nice if someone can make a PR.

Hi Alex!

I'd like to contribute and add some new features. Can you assign this to me? I'll PR asap once this request is approved! Thanks!

PS. I'm using this library too. Thanks for your work!

Yes, this issue is valid when the BottomDrawer has no child or says that the recyclerView is empty then it collapsed and not open even half. we just can see the toolbar.

ahanhan... I take my words back! The problem was occurring because the child elements have a height of wrap_content, After replacing them with match_parant the problem gets solved.