0
我正在使用nativescript版本2.4.2。 Android中的標籤會產生漣漪效應,但當我在可點擊的網格佈局下使用標籤時,紋波不會發生。gridlayout內的Nativescript標籤沒有獲得漣漪效應
考慮下面的代碼
<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)"
。刪除點擊事件綁定使其工作。
是的,這works..Thanks – krv