有没有办法移动 android Honeycomb 操作栏?
我喜欢 Android 3.0+ 操作栏的外观,但我不希望它位于屏幕顶部。有没有办法把它移到底部或侧面?
I like how the Android 3.0+ action bar looks, but I don't want it to be on top of the screen. Is there a way to move it to the bottom or to the side?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是不可能的。至少不使用公共 API。您可以轻松找到一种方法来做到这一点,但您的应用程序将与其他应用程序不一致,并且可能会随着操作系统的未来更新而中断。
It is not possible to do so. At least not using public APIs. You could easily find a way to do it but your app would be inconsistent with other apps and likely to break with future updates of the OS.
我认为,如果您深入研究 actionBarsherlock的源代码,您可能会有些运气。由于该库为前HC设备创建了一个动作栏,因此您可能只能更改其出现的位置。这并不是您要寻找的答案,但是它可能能够解决您的问题。
I think you may have some luck if you delve deep enough into ActionBarSherlock's source code. Since that library creates an ActionBar for pre-HC devices, you may be able to just change the position where it appears. This isn't exactly the answer you were looking for, but it just might be able to solve your problem.