2017-12-01 1 views
0

Ich versuche, nativescript zu lernen und 2 separate Projekte zu finden und zu versuchen, sie zu kombinieren, aber wenn ich diese Schriftrolle nicht funktioniert können Sie erklären, warum oder was ich falsch mache.Nativescript scroll funktioniert nicht mit stackLayout

Hier ist mein Code

<ActionBar title="myApp" class="action-bar"> 
</ActionBar> 


    <GridLayout class="page" orientation="vertical"> 

    <ListView [items]="items" class="list-group"> 
     <ng-template let-item="item"> 
      <Label [nsRouterLink]="['/item', item.id]" [text]="item.name" 
     class="list-group-item"></Label> 
     </ng-template> 
    </ListView> 

</GridLayout> 
<TabView #tabview [selectedIndex]="tabindex" class="tab-view" 
selectedColor="#4099FF" > 

<StackLayout align="top" *tabItem="{title:'Home',iconSource:'res://home'}"> 
    <home-tab></home-tab> 
    </StackLayout> 
    <StackLayout *tabItem="{title: 'Explore', iconSource:'res://explore'}"> 
    <Label class="border" borderWidth="5" borderColor="black" text="hey"> 
</Label> 
</StackLayout> 
<StackLayout *tabItem="{title: 'Notifications', 
iconSource:'res://notifications'}"> 
    </StackLayout> 


</TabView> 

Hier oben I Registerkarten und unter, dass ich Liste der Elemente, aber nicht nach unten scrollen es nicht

Antwort

Verwandte Themen