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

UI issues while setting constraints. #7

Open
hassan31 opened this issue Jan 22, 2020 · 2 comments
Open

UI issues while setting constraints. #7

hassan31 opened this issue Jan 22, 2020 · 2 comments

Comments

@hassan31
Copy link

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

@HeyAlex
Copy link
Owner

HeyAlex commented Apr 25, 2020

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.

@hassan31
Copy link
Author

hassan31 commented May 8, 2020

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

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

2 participants