【发布时间】:2013-10-03 20:29:54
【问题描述】:
我正在尝试通过使用 AppCompat 库来支持低至 API 级别 9 的设备。我正在尝试使用来自 Google 的 example theme 为 ActionBar 设置主题,但它一直告诉我任何名为 android:action* requires API level 11 (current min is 9) 的项目。我的目标是 18。如果我直接使用示例中的内容,为什么会损坏?谁能帮我弄清楚如何使用 API 级别 9 的 AppCompat 库为 ActionBar 设置主题?
【问题讨论】:
-
到底是什么破坏了?您的目标是什么并不重要,重要的是您的最低 API 级别。
-
我希望能够在低于 11 的 API 级别上设置 Actionbar 的主题。示例说它应该适用于 2.1 (API 7) 及更高版本。
标签: android android-theme android-appcompat