Skip to content

UI issues while setting constraints. #7

@hassan31

Description

@hassan31

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions