突出显示父级标记图标
我有一个带有3个图标的底部导航栏。这些图标中的每个图标都映射到自己的屏幕,每个屏幕中的每一个都可以导航到只有通过它可用的n个屏幕。如何在导航栏上突出显示当前屏幕的父母?我正在使用JetPack导航组件和XML,似乎一切都在自动完成,因此我无法手动指示行为。
I have an app that has a bottom navigation bar with 3 icons. Each one of those icons maps to their own screens and each one of those screens can navigate to n amount of screens only available through it. How can I highlight the parent of the current screen on the navigation bar? I am using jetpack navigation components and xml and it seems like everything is being done automatically so I have no way of dictating behavior by hand.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
考虑使用
navController.ondestinationChangedListener
:例如:
Consider using
NavController.OnDestinationChangedListener
For example: