android - 操作栏兼容性

标签 android android-layout android-emulator android-intent android-widget

我注意到在 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.

它显示了两件事:

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

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

关于android - 操作栏兼容性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9150462/

相关文章:

java - "Class Cast Exception"尝试将图像帧设置为背景时

android - AOSP 是否支持 Android Marshmallow 的 MIPS 架构?

java - 对话框自行更改方向。如何将对话框的方向固定为横向

android - 无论如何,保持布局的高度作为换行内容,但不要让它超过一定的高度

Android Fragments - 2 个 fragment 和 1 个框架布局

java - 在 android 模拟器中运行 HelloListView 时出现问题

系统终止后的 Android Activity 重新创建

android - minifyEnabled true 时构建 APK 时出错

android - 卸载时获取包(应用程序)版本名称

Android 模拟器 x86 HAXM GPU Windows 7 崩溃 BSOD