[英]How to create bottom Navigation bar like Material.io
I have been trying to configure the bottom navigation bar to looks like the material.io,我一直在尝试将底部导航栏配置为看起来像 material.io,
I checked https://material.io/develop/android/components/bottom-navigation-view/ and https://developer.android.com/reference/com/google/android/material/bottomnavigation/BottomNavigationView我检查了https://material.io/develop/android/components/bottom-navigation-view/和https://developer.android.com/reference/com/google/android/material/bottomnavigation/BottomNavigationView
I am out of luck, and looks like they may not use BottomNavigationView.calss to create this我运气不好,看起来他们可能不会使用 BottomNavigationView.calss 来创建这个
https://material.io/design/environment/surfaces.html#attributes https://material.io/design/environment/surfaces.html#attributes
You can implement that bottom app bar on Android with BottomAppBar
from com.google.android.material:material:1.0.0
.您可以使用com.google.android.material:material:1.0.0
BottomAppBar
在 Android 上实现底部应用栏。 Here is the reference guide : https://material.io/develop/android/components/bottom-app-bar/这是参考指南: https : //material.io/develop/android/components/bottom-app-bar/
There is a "Develop" section on material.io that teaches you how to use libraries to use each component on all platforms. material.io 上有一个“开发”部分,教您如何使用库在所有平台上使用每个组件。 At the moment, most components are not implemented on Android, but hopefully BottomAppBar
is already available !目前,大多数组件还没有在 Android 上实现,但希望BottomAppBar
已经可用!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.