ListView inside ScrollView shows only first item


#1

I am modifyng Branstein’s example in ch 10 of The NativeScript Book. I added … around a ListView. Without the ScrollView the example shows a list of page items. With the ScrollView only the first list item is shown. What should I do to see the whole list of pages ? The list should automaticcally increase in length if the nr of pages increases. N.B. I need scrollview because I want to add fields above the listview.

Page loaded=“onLoaded”>
<Page.actionBar>



</Page.actionBar>



<ListView.itemTemplate>




</ListView.itemTemplate>




#2

A ListView is itself scrollable. If you want items above list view, wrap it with a GridLayout and dock items above or below that.