Files
NativeScript/apps/app/ui-tests-app/main-page.xml
Panayot Cankov 6d7c1ff295 Avoid applying CSS multiple times (#4784)
* Move the applyStyleFromScope to onLoaded, when the views are created and id or className properties are set the CSS selectors are queried and applied multiple times

* Condense the changes when applying properties
2017-09-25 18:32:00 +03:00

18 lines
980 B
XML

<?xml version="1.0" encoding="UTF-8" ?>
<Page loaded="pageLoaded">
<GridLayout rows="auto, *">
<GridLayout row="0" columns="*,30" id="parentLayout">
<TextView col="0" automationText="tv" id="textView" hint="Enter example name" text="{{ exampleName }}" />
<Button col="1" automationText="Run" id="btnRun" text="&#xf046;" tap="{{ loadExampleFromTextField }}" style="font-family:FontAwesome; padding:0; background-color:#33cc33; color:white; border-radius:5; height:30; padding:0;"/>
</GridLayout>
<WrapLayout row="1" id="wrapLayoutWithExamples"/>
<ListView row="1" items="{{ filteredListOfExamples }}" itemTap="{{ loadExampleFromListView }}" id="filteredListOfExamplesListView">
<ListView.itemTemplate>
<GridLayout columns="*,2*">
<Label text="{{ name }}" textWrap="true" />
<Label text="{{ path }}" textWrap="true" col="1"/>
</GridLayout>
</ListView.itemTemplate>
</ListView>
</GridLayout>
</Page>