Skip to content

Size problem with wrap_content #3

@LordXamon

Description

@LordXamon

The size of the grid view is not automatically resized, so it does not expand when configured for wrap_content
bad
Fortunately, I have no more things after the grid view, so I could solve it with the following code, but it is not the most optimal solution.

ViewGroup.LayoutParams lp = gridViewHorario.getLayoutParams();
lp.height = ViewGroup.LayoutParams.MATCH_PARENT;//YOLO
gridViewHorario.setLayoutParams(lp);

good

Otherwise, no problem. Works correctly.

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