【发布时间】:2017-05-11 01:37:20
【问题描述】:
我使用的是 nativescript 版本 2.4.2。 android 中的标签会产生涟漪效应,但是当我在可点击的网格布局下放置标签时,不会发生涟漪效应。
考虑下面的代码
<StackLayout text="fill">
<ListView [items]="groceryList | async | searchFilter:sb.text" class="listview">
<template let-item="item" col="0">
<GridLayout columns="auto,auto,*" rows="*,*" class="fa" (tap)="goToList(item)">
<Label horizontalAlignment="left" verticalAlignment="center" [text]="item.iconFont | fonticon" class="h2 icon-thumbnail"></Label>
<Label col="1" horizontalAlignment="center" [text]="item.name" class="listview item "></Label>
<Label col="2" horizontalAlignment="right" text="" class="listview item" class="h2 arrow-icon "></Label>
</GridLayout>
</template>
</ListView>
</StackLayout>
请注意,我在 gridview 上有(tap)="goToList(item)"。删除点击事件绑定使其工作。
【问题讨论】:
标签: android listview nativescript angular2-nativescript