我注意到在 android 开发者网页上,有 THIS标题为“Action bar compatibility”的文档。
它是否展示了使用 旧 android API 低于 v11 的操作栏实现,或者它是否展示了如何使用 API v11 和更高版本实现操作栏?我对此页面感到困惑。
最佳答案
This sample shows how to use the ActionBar design pattern on pre-API 11 devices and the built-in ActionBar on devices supporting API 11 or greater.
它显示了两件事:
如何在 API 11 之前的设备上使用没有实际 ActionBar 对象的操作栏。模拟一个ActionBar。
如何在 Android 11+ 中使用 ActionBar
关于android - 操作栏兼容性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9150462/