Nativescript 4.0新框架能否使用比Tabview或Sidedrawer更多的元素?
我看那个框架现在好多了。 我们可以使用Tabview,它是当前视图的根Nativescript 4.0新框架能否使用比Tabview或Sidedrawer更多的元素?,nativescript,Nativescript,我看那个框架现在好多了。 我们可以使用Tabview,它是当前视图的根 <TabView androidTabsPosition="bottom"> <TabViewItem title="First"> <Frame defaultPage="home/home-page" /> </TabViewItem> <TabViewItem title="Second"> <Fr
<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>
create/create.xml
<StackLayout class="footer white">
<Label text="test"></Label>
</StackLayout>
不要使用像GridLayout这样的布局,而是将它作为参考,更具体地说
但是,上述方法适用于Android,但对于iOS,您应该删除每个框架内每个页面的操作栏,或者创建多个不推荐的操作栏