操作栏兼容性

发布于 2025-01-02 15:03:29 字数 270 浏览 1 评论 0原文

我注意到在android开发者网页上,有一个THIS文档,其标题为“操作栏兼容性”。

它是否显示使用 android API 小于 v11 实现操作栏,或者显示如何使用 API v11 及更高版本实现操作栏?我对这个页面感到困惑。

I notice that on the android developer web page, there is THIS document which is titled "Action bar compatibility" .

Does it show the action bar implementation with old android API less than v11 or does it show how to implement action bar with API v11 and greater? I get confused by this page.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清泪尽 2025-01-09 15:03:29

此示例演示如何在 API 11 之前的设备上使用 ActionBar 设计模式,以及如何在支持 API 11 或更高版本的设备上使用内置 ActionBar。

它显示了 2 件事:

  1. 如何在 API 11 之前的设备上使用没有实际 ActionBar 对象的操作栏。 ActionBar 是模拟的。

  2. 如何在 Android 11+ 中使用 ActionBar

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.

It shows 2 things:

  1. How to use an action bar without the actual ActionBar object on pre-API 11 devices. A ActionBar is simulated.

  2. How to use the ActionBar in Android 11+

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文