Android BottomNavigationView with custom views as

2019-06-16 02:57发布

I'm trying out the new BottomNavigationView from the Android Support library. For one of the menu items I would like to have a custom view so that I can add a circular user image programatically as an icon.

After using, this does not seem possible with either this support component or the roughhike/BottomBar library. Any ideas? The question could be simplified on how to use a layout in a menu as an icon and if this is possible with BottomNavigationView or other libraries.

1条回答
smile是对你的礼貌
2楼-- · 2019-06-16 03:55

I found a third party Bottom Navigation View-type library that does everything we want - including having built-in 'notification badge count' functionality.

https://github.com/aurelhubert/ahbottomnavigation

It's a shame the official control is so useless, but I'm using this for now and it works perfectly.

查看更多
登录 后发表回答