Skip to content

GridLayout height issues on Android 8.0.0 SM-G935F #274

Open
@shiyao821

Description

@shiyao821

The recommended code:
<GridLayout columns="2*,*" rows="*" width="100%" height="25%">
doesn't look as it should on my android.
First of all, the TextField and Button looked really thick. It actually did have almost 25% height of the entire screen.
Next, whenever the TextField is tapped, the keyboard is brought up and the height of the TextField and the button is halved.
A fix that worked for me was giving the height an absolute pixel value. eg.
<GridLayout columns="2*,*" rows="*" width="100%" height="400px">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions