BottomDrawer icon indicating copy to clipboard operation
BottomDrawer copied to clipboard

UI issues while setting constraints.

Open hassan31 opened this issue 5 years ago • 2 comments

Hi, I've created the fragment which has a header title and detail and a button at the bottom. Please see the attached screenshot, and observe the constraints that I set. I set the height 0dp for TextView that is in between of header title and bottom button so that it should remain in the middle and top & bottom margins should remain 20dp and 25dp respectively. But when I run the app the middle view i.e. TextView, does not appear, only I see the header title and bottom button. Screen Shot 2020-01-21 at 9 52 12 PM Screenshot_1579661536

On the other hand, If I set the constraints of TextView vertically center, and If I have a very large text that I want to be scrollable, in that case, but what happens, the text view gone out of the constraints, top & bottom constraints overlaps to the heder title and bottom button respectively. Please see attached screenshot for your reference. Screen Shot 2020-01-21 at 10 01 36 PM Screenshot_1579662152 Screenshot_1579662140

I want the bottom button to be sticky at the bottom. In the last screenshot, the bottom drawer sheet has a smaller view initially, and I don't see the button at the bottom. When I swipe up for full view, then the button appears. These kind of issues I'm facing at the moment. Since I'm new in android development so struggling. Kindly bear with me in this regard and let me know how can I fix these issues?

Thanks a lot. Regards, Hassan

hassan31 avatar Jan 22 '20 03:01 hassan31

Hi Hassan. Sorry for that late response. The problem that you described is more about Bottom Sheet, and not about library. The bad thing that with dialog that provides that library, can't be overlayed. In next release i will make BottomDrawer as View and with this approach you can make an overlay a button on the top of all views.

HeyAlex avatar Apr 25 '20 10:04 HeyAlex

@HeyAlex Thanks for your reply. Will wait for next release.

hassan31 avatar May 08 '20 14:05 hassan31