mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00

Fixed crash where activity was incorrectly using existing initialized frame. Fixed TabView to use _nativeView instead of Frame.
15 lines
957 B
XML
15 lines
957 B
XML
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded"
|
|
codeFile="~/cuteness.io/main-page.js">
|
|
<ListView items="{{ redditItems }}" isScrolling="{{ isScrolling }}" itemTap="listViewItemTap" loadMoreItems="listViewLoadMoreItems">
|
|
<ListView.itemTemplate>
|
|
<!-- Binding in template property of an component will use the bindingContext provided by the component. -->
|
|
<GridLayout columns="auto, *, auto" rows="auto, 25">
|
|
<Image src="{{ thumbnailImage }}" class="thumbnail" rowSpan="2"/>
|
|
<Label text="{{ title || 'Downloading...' }}" textWrap="true" class="title" col="1" colSpan="2" minHeight="50" />
|
|
<Label text="{{ author ? 'by ' + author : '' }}" class="author" col="1" row="1" />
|
|
<Label text="{{ num_comments ? num_comments + ' comments' : '' }}" class="comments" col="2" row="1" />
|
|
</GridLayout>
|
|
<!-- End of tempplate. -->
|
|
</ListView.itemTemplate>
|
|
</ListView>
|
|
</Page> |