【发布时间】:2018-05-09 08:07:19
【问题描述】:
我发现 Frame 现在工作得更好了。 我们可以有 Tabview,它是当前视图的根。
<TabView androidTabsPosition="bottom">
<TabViewItem title="First">
<Frame defaultPage="home/home-page" />
</TabViewItem>
<TabViewItem title="Second">
<Frame defaultPage="second/second-page" />
</TabViewItem>
</TabView>
这看起来像是主页或第二页被“包含”了。
现在,我想知道是否可以让 app-root.xml 包含通用元素,并包含所需的页面。我试过了,但是这不起作用(为什么?这种方法只适用于 tabview 和 sidedrawer ?)
app-root.xml
<Page>
<Frame defaultPage="create/create"></Frame>
</Page>
创建/创建.xml
<StackLayout class="footer white">
<Label text="test"></Label>
</StackLayout>
【问题讨论】:
标签: nativescript