在底部项目视图上更改底部导航图标颜色(或)图标(或)图标
问题是关于撰写的底部导航,
- 我已经使用navhost创建了底部导航视图,
- 我需要在每次单击它时(启用/disable)将图标状态更改为(启用/disable),就像更改图标或图标颜色本身一样
The Question is regarding the Compose Bottom Navigation,
- I have created the bottom navigation view with NavHost
- I need to change the Icon state as (Enable/Disable) while clicking on it each time like changing the Icon or Icon colour itself
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如您所说,您已经实施了导航。因此,现在您必须检查当前路线以及底部导航屏幕路线
将图标颜色acc给所选路线,如
以下是完整的底部导航栏实现
屏幕模型文件
As you said you implement navigation already . so now you have to check current route and and bottom navigation screen route
give icon color acc to selected route like this
here is full Bottom Navigation Bar implementation
screen model file