Skip to content

Apply visibility via binding fails [Android] #1692

@manijak

Description

@manijak

I am trying to show/hide a label over a ListView based on the length property of the items-binding. This works just fine on iOS, but not on Android. The Label is never hidden. The 'items' binding is populated in the loaded event of the view/page.

<GridLayout>
    <Label text="List is empty..." visibility="{{ items.length === 0 ? 'visible' : 'collapsed' }}"/>
    <ListView items="{{ items }}">
        <ListView.itemTemplate>
            <StackLayout>
                ...
            </StackLayout>
        </ListView.itemTemplate>
    </ListView>
</GridLayout>

CLI: 1.6.1
Cross-platform modules: 1.6.2
Runtime(s): ios 1.6.0, android 1.6.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions