Nativescript:Android新的导航栏 [英] Nativescript : Android new navigation bar

查看:109
本文介绍了Nativescript:Android新的导航栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据Google的新材料设计指南,酒吧应该在底部.我如何实施(如果有办法)?目前,我使用的是Tabview,默认情况下,它位于页面顶部. 谢谢

According to Google's new Material Design guidelines, the navigation bar is supposed to be at the bottom. How can I implement it (if there is a way) ? For the moment, I'm using a Tabview which, by default on Android, is put at the top of the page. Thank you

推荐答案

截止目前,Google还没有提供附带的小部件.因此,您必须自己动手.组件规范有几种开源实现.

As of right now there isn't a shipped widget from Google. So you have to roll your own. There are several open source implementations of the component spec.

我发现可以与NativeScript一起使用的更好的方法之一是 https://github.com /roughike/BottomBar

One of the better ones I have found that you could use with NativeScript is, https://github.com/roughike/BottomBar

另一种替代方法是使用固定在视图底部的grid-layout,将导航栏设置为透明,这在我的博客文章 http://developer.android.com/reference/android/view/ViewAnimationUtils.html#createCircularReveal(android.view.View ,int,int,float,float)来为圆形显示效果设置动画.

Another alternative is to use a grid-layout pinned to the bottom of you view, set the navigation bar to be transparent, this is covered in my blog post here. Then you could use the nativescript animation API to animate the labels for the effect. You would then use this :http://developer.android.com/reference/android/view/ViewAnimationUtils.html#createCircularReveal(android.view.View, int, int, float, float) to animate the circular reveal effect.

我可能会使用已经可用的NativeScript写一篇帖子,然后如果有时间的话,将该库放入 NativeScript的插件中

I might write up a post using already available NativeScript and then if I have time make that library into a plugin for NativeScript

我昨天在几分钟内使用底部栏的库将它们放在一起.

I put this together in a few minutes yesterday using a library for the Bottom Bar.

这篇关于Nativescript:Android新的导航栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆