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.
对于 3.0 的操作栏,我可以为纵向和横向定义两种操作栏样式吗?当我从横向模式切换到纵向模式时,操作栏不会自行重置(例如在没有可用空间时隐藏图标)。我正在使用带有兼容性库的 sdk 11。谢谢。
是的你可以。轮换时,将重新创建 Activity。因此在 create 方法中,您可以根据当前方向设置视图和 ActionBar 属性。