Nativescript 如何混合ScrollView和Grid或Flexview?

Nativescript 如何混合ScrollView和Grid或Flexview?,nativescript,angular2-nativescript,Nativescript,Angular2 Nativescript,我不熟悉nativescript。我刚刚浏览了教程,并能够制作一个具有滚动视图的应用程序,如下所示: ​ ​ 然而,我想让这些元素在一个2列的网格中,但是我不知道如何在不破坏应用程序的情况下做到这一点。有人能帮我一下吗?在GridLayout的行中,自动和两列之间缺少逗号,需要添加列参数,例如带星号或数字或自动 更多 <ScrollView (scroll)="onScroll($event)"> <GridLayout class="m-15" rows="aut

我不熟悉nativescript。我刚刚浏览了教程,并能够制作一个具有滚动视图的应用程序,如下所示: ​


然而,我想让这些元素在一个2列的网格中,但是我不知道如何在不破坏应用程序的情况下做到这一点。有人能帮我一下吗?

在GridLayout的行中,自动和两列之间缺少逗号,需要添加列参数,例如带星号或数字或自动

更多

<ScrollView (scroll)="onScroll($event)">
    <GridLayout class="m-15" rows="auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto">
     <Label class="h3 m-5" height="50" row="0" text="Title 1"></Label>
    <Image class="h3 m-5" row="1" src="https://play.nativescript.org/dist/assets/img/NativeScript_logo.png" height="80" width="80"></Image>
   <Label class="h3 m-5" height="50" row="2" text="Title 3"></Label>
   <Label class="h3 m-5" height="50" row="3" text="Title 4"></Label>
   <Label class="h3 m-5" height="50" row="4" text="Title 5"></Label>
   <Label class="h3 m-5" height="50" row="5" text="Title 6"></Label>
   <Label class="h3 m-5" height="50" row="6" text="Title 7"></Label>
   <Label class="h3 m-5" height="50" row="7" text="Title 8"></Label>
   <Label class="h3 m-5" height="50" row="8" text="Title 9"></Label>
   <Label class="h3 m-5" height="50" row="9" text="Title 10"></Label>
   <Label class="h3 m-5" height="50" row="10" text="Title 10"></Label>
   <Label class="h3 m-5" height="50" row="11" text="Title 11"></Label>
   <Label class="h3 m-5" height="50" row="12" text="Title 12"></Label>
   <Label class="h3 m-5" height="50" row="13" text="Title 13"></Label>
   <Label class="h3 m-5" height="50" row="14" text="Title 14"></Label>
   <Label class="h3 m-5" height="50" row="15" text="Title 15"></Label>
</GridLayout>
</ScrollView>
 <GridLayout class="m-15" columns="*,*" rows="auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto">
<Label class="h3 m-5" height="50" col="0" row="2" text="Title 3"></Label> //third row, first column
<Label class="h3 m-5" height="50" col="1" row="2" text="Title 4"></Label> //third row, second column