Nativescript RadListView和tkGroupTemplate,内部内容水平滚动
告诉我们这个问题 我试图水平设置使用功能分组的内容,但这是不可能的,因为所有内容都是水平的 您的问题发生在哪个平台? 两者 请告诉我们如何尽可能详细地重新创建问题。Nativescript RadListView和tkGroupTemplate,内部内容水平滚动,nativescript,angular2-nativescript,nativescript-angular,nativescript-plugin,Nativescript,Angular2 Nativescript,Nativescript Angular,Nativescript Plugin,告诉我们这个问题 我试图水平设置使用功能分组的内容,但这是不可能的,因为所有内容都是水平的 您的问题发生在哪个平台? 两者 请告诉我们如何尽可能详细地重新创建问题。 <RadListView [items]="dataItems" #productsListView [groupingFunction]="grouping" > <ng-template tkListItemTemplate let-item="item">
<RadListView
[items]="dataItems"
#productsListView
[groupingFunction]="grouping"
>
<ng-template tkListItemTemplate let-item="item">
<StackLayout orientation="horizontal" width="100%">
<MDCardView width="100" height="100">
<Image stretch="aspectFill" [src]="item.image"></Image>
</MDCardView>
</StackLayout>
</ng-template>
<ng-template tkGroupTemplate let-category="category">
<GridLayout columns="*, auto" ios:height="50">
<Label
col="0"
style="font-weight: bold; font-size: 24"
[text]="category"
></Label>
<Label
col="1"
style="font-size: 12; color: gray;"
text="Ver más"
></Label>
</GridLayout>
</ng-template>
<ListViewGridLayout
tkListViewLayout
itemHeight="100"
scrollDirection="Horizontal"
></ListViewGridLayout>
</RadListView>
在
tkGroupTemplate
<ng-template tkGroupTemplate let-category="category">
<GridLayout>
<ScrollView orientation="horizontal" scrollBarIndicatorVisible="false">
<Label class="m-5 h2" [text]="category"></Label>
</ScrollView>
</GridLayout>
</ng-template>
在组模板中使用ScrollView。@Manoj任何示例请修改预览以显示类似于我的示例,您的ScrollView更改,但行为保持不变,我无法进行水平滚动