BottomDrawer icon indicating copy to clipboard operation
BottomDrawer copied to clipboard

Predefined height and Parameters

Open cherimo opened this issue 5 years ago • 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.

cherimo avatar Nov 19 '20 21:11 cherimo

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.

HeyAlex avatar Nov 22 '20 14:11 HeyAlex

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!

forceporquillo avatar Dec 28 '20 07:12 forceporquillo

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.

Srt9930 avatar Apr 24 '21 11:04 Srt9930

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.

Srt9930 avatar Apr 24 '21 11:04 Srt9930