mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* Include new example for issue 4385 * Include new test page for issue 4385. Restyle and rename main-page. * Update main-page * Fix navigation
35 lines
1.4 KiB
XML
35 lines
1.4 KiB
XML
<Page
|
|
xmlns="http://schemas.nativescript.org/tns.xsd" loaded="navigatingTo">
|
|
<Page.actionBar>
|
|
<ActionBar title="4385">
|
|
<NavigationButton text="Go Back" android.systemIcon="ic_menu_back" tap="onNavBtnTap"/>
|
|
</ActionBar>
|
|
</Page.actionBar>
|
|
<StackLayout>
|
|
<!--In xml the new line can be set with 
-->
|
|
<Button style="text-align:center; background-color:yellow" textWrap="true" class="btnIcon" >
|
|
<Button.formattedText>
|
|
<formattedString>
|
|
<formattedString.spans>
|
|
<Span text=" text-align: center" fontSize="14">
|
|
</Span>
|
|
<Span text="
new line">
|
|
</Span>
|
|
</formattedString.spans>
|
|
</formattedString>
|
|
</Button.formattedText>
|
|
</Button>
|
|
<Button style="text-align:center; background-color:green" textWrap="true" class="btnIcon" >
|
|
<button.formattedText>
|
|
<formattedString>
|
|
<formattedString.spans>
|
|
<Span text="code behind" fontSize="14">
|
|
</Span>
|
|
<Span text="{{ test }}">
|
|
</Span>
|
|
</formattedString.spans>
|
|
</formattedString>
|
|
</button.formattedText>
|
|
</Button>
|
|
</StackLayout>
|
|
</Page> |