Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在尝试做的是创建一个无论显示什么活动或布局都保持“静态”的菜单。有没有办法做到这一点,或类似的事情?
谢谢!
是的,
1-创建一个自定义活动(从活动扩展它)
2-在该自定义 Activity 中编写菜单创建代码。
3-现在从这个自定义活动扩展你的所有活动。