mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
24 lines
982 B
XML
24 lines
982 B
XML
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatedTo="pageNavigatedTo">
|
|
<GridLayout rows="*, auto">
|
|
<ScrollView>
|
|
<StackLayout>
|
|
<Image imageSource="{{ imageSource }}" stretch="aspectFill"/>
|
|
<Label text="{{ title }}" class="detailsTitle" textWrap="true" />
|
|
</StackLayout>
|
|
</ScrollView>
|
|
<StackLayout orientation="horizontal" row="1">
|
|
<Label margin="2">
|
|
<Label.formattedText>
|
|
<FormattedString fontSize="20" foregroundColor="#C6C6C6">
|
|
<FormattedString.spans>
|
|
<Span text="{{ author ? 'by ' + author : '' }}"/>
|
|
<Span text="{{ num_comments ? ' | ' : '' }}" />
|
|
<Span text="{{ num_comments ? num_comments + ' comments' : '' }}" foregroundColor="#10C2B0"/>
|
|
</FormattedString.spans>
|
|
</FormattedString>
|
|
</Label.formattedText>
|
|
</Label>
|
|
</StackLayout>
|
|
<ActivityIndicator busy="{{ isLoading }}" />
|
|
</GridLayout>
|
|
</Page> |