Android 底栏喜欢 Google Space 应用
Android Bottom bar like Google Space app
我想在我的 Android 应用程序中使用 BottomBar,但我想将其样式设置为 one in Google Space app。我怎样才能达到这种效果?
实施您的解决方案的一些要素:
- Material 设计 > 组件 > Bottom Navigation
- 教程:http://androidgifts.com/tag/bottom-navigation/
- 自定义实现:https://github.com/roughike/BottomBar
最简单的(烟雾和镜子)解决方案是为该布局的背景制作一个中间有一个凸起的九块补丁 - 例如使用罗马的工具 - https://romannurik.github.io/AndroidAssetStudio/nine-patches.html
如果您需要为底栏设置动画,那么您肯定需要创建自己的栏。也许做一个自定义布局并在绘制背景时在中间画一个凹凸? Extravaganza 肯定会为矢量绘图设置动画:https://developer.android.com/reference/android/graphics/drawable/AnimatedVectorDrawable.html
在询问朋友后,我发现 this library 完全符合我的要求
Here is a Demo
这个库让您可以像使用选项卡布局一样使用它 SpaceTabLibrary。
我想在我的 Android 应用程序中使用 BottomBar,但我想将其样式设置为 one in Google Space app。我怎样才能达到这种效果?
实施您的解决方案的一些要素:
- Material 设计 > 组件 > Bottom Navigation
- 教程:http://androidgifts.com/tag/bottom-navigation/
- 自定义实现:https://github.com/roughike/BottomBar
最简单的(烟雾和镜子)解决方案是为该布局的背景制作一个中间有一个凸起的九块补丁 - 例如使用罗马的工具 - https://romannurik.github.io/AndroidAssetStudio/nine-patches.html
如果您需要为底栏设置动画,那么您肯定需要创建自己的栏。也许做一个自定义布局并在绘制背景时在中间画一个凹凸? Extravaganza 肯定会为矢量绘图设置动画:https://developer.android.com/reference/android/graphics/drawable/AnimatedVectorDrawable.html
在询问朋友后,我发现 this library 完全符合我的要求
Here is a Demo
这个库让您可以像使用选项卡布局一样使用它 SpaceTabLibrary。