Skip to content

Layout margin, incorrect height #7

@westito

Description

@westito

I weighted two views ( 50% - 50% ) to each other. I would add a padding between with marginLeft and marginRight, but the margin is omitted! It is works in regular RelativeLayout. It can be workarounded (+view between the two), but it not the nicest solution.

Incorrect height: When I position vertically the whole springlayout in relative layout (below to a header), the height is not updated and will be below the screen bottom. If I set the alignParentBottom the frame will be correct, but a view inside the springlayout still use the incorrect size, and runs out of height (bottom not showing)

I enclosed three screenshots: two shows the issue, the third is just a sample, why it is problem (button aligned to the bottom). Intellij incorrectly show it is a RelativeLayout in tree, but it is SpringLayout (bug in intelliJ)

screenshot-2015-01-14-22 12
screenshot-2015-01-14-22 01
screenshot-2015-01-14-22 04

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