[英]How to display Bottom Navigation bar in iOS and Top Navigation bar in Android (NativeScript Angular)?
I used the tns-template-tab-navigation-ng
to generate the template.我使用
tns-template-tab-navigation-ng
来生成模板。 My goal is to make a whatsApp clone and in iOS it's bottom navigation bar and in android its Top nav.我的目标是制作一个 WhatsApp 克隆,在 iOS 中它是底部导航栏,在 android 中它是顶部导航。 I would like to know how to display it as TopNav in android.
我想知道如何在 android 中将其显示为 TopNav。
You can use two templates:您可以使用两个模板:
app.component.ios.html app.component.ios.html
<BottomNavigation>
...
</BottomNavigation>
app.component.android.html app.component.android.html
<Tabs>
...
</Tabs>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.