Skip to content

ListView with rounded items can not show the background of Page #1290

@AllenMeex

Description

@AllenMeex

Hi all,

I want to make a ListView and its items is rounded. The round part should show the background of the Page. But I get a round part with White.

xml:

<Page xmlns="http://www.nativescript.org/tns.xsd" backgroundColor="#FF00FF00">
    <ListView items="[[" marginTop="20" backgroundColor="#00000000">
      <ListView.itemTemplate>
          <Label text="AABBCC" verticalAlignment="stretch" backgroundColor="#30000000" style="text-align:center; border-width:1; border-radius:20"/>
      </ListView.itemTemplate>
    </ListView>
</Page>

Result:
image

How can I set the color of white part to GREEN ?

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions