自定义底部导航栏布局

发布于 2025-01-14 12:25:16 字数 224 浏览 7 评论 0原文

我想创建以下自定义的 BottomNavigationBar。如何为其设置自定义布局?

输入图片这里的描述

有人能告诉我如何处理它吗?

I want to create the following customized BottomNavigationBar. How can I set custom layout for the same?

enter image description here

Can somebody tell me how to approach it ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

青萝楚歌 2025-01-21 12:25:16

您可以查看这个库,希望这有帮助! BottomNavigationCircles-Android

You can check this library, hope this helps! BottomNavigationCircles-Android

情感失落者 2025-01-21 12:25:16

如果您可以使用 Material 组件,那么这篇文章应该有用:https:// /protocoderspoint.com/custom-bottom-navigation-bar-android/

这是在谷歌上相对容易找到的东西,所以我建议在那里寻找一些帮助。

如果您想在预先构建的布局/系统。

据我所知,没有方法为底部导航栏设置 android:layout="@layout/mylayout" 函数。

在 GitHub 上搜索“自定义底部导航栏”,并尝试在已经完成的肮脏工作的基础上进行构建。当您尝试构建后端导航模式和布局充气器时,它将节省大量时间和麻烦。

If you are OK with using Material components, this article should be of use: https://protocoderspoint.com/custom-bottom-navigation-bar-android/.

This is a relatively easy thing to find on Google, so I advise looking there for some help.

Check out sites like https://github.com/roughike/BottomBar if you want to build upon a pre-built layout/system.

As far as I can tell though, there is no method to set android:layout="@layout/mylayout" function for bottom nav bars.

Search GitHub for "custom bottom navigation bar" and try to build off of the dirty work that has been done there. It will save a lot of time and headache while you're trying to build the back-end navigation patterns and layout inflators.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文