简体   繁体   English

Android-BottomBar中的子菜单项?

[英]Android - Submenu items in BottomBar?

I'm trying to add a submenu to the Android BottomBar , similar to this except the submenu should show after clicking a BottomBar icon. 我正在尝试向Android BottomBar添加一个子菜单,与类似,只是该子菜单应在单击BottomBar图标后显示。

I was able to get the BottomBar working, just looking for a simple submenu example. 我能够找到BottomBar,只需寻找一个简单的子菜单示例。 I basically want the user to click "Color" on the BottomBar and have a list of colors appear. 我基本上希望用户单击BottomBar上的“颜色”,并显示颜色列表。 After selecting, an ImageView tint will change based on selection. 选择后,ImageView色调将根据选择而改变。

I ended up abandoning BottomBar and using a row of plain Buttons with ListViews for pop-up menus. 我最终放弃了BottomBar,并使用带有ListViews的一排普通按钮作为弹出菜单。 Much more control and better suited for my scenario. 控制更多,更适合我的情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM