【问题标题】:Holo theme not applying to dialogs when using holoeverywhere library使用 holoeverywhere 库时,Holo 主题不适用于对话框
【发布时间】:2012-09-27 06:37:15
【问题描述】:

我在我的 Android 项目中使用 ChristopheVersieux 的 HoloEverywhere 库。

一切都很好,除了对话框。 Holo 样式不适用于 AlertDialogs 和自定义对话框。

【问题讨论】:

  • 这是一个已知的错误...我需要时间来解决这个问题。

标签: android android-theme android-holo-everywhere


【解决方案1】:

确保您使用的是正确的import

替换:

import android.app.AlertDialog

与:

import com.WazaBe.HoloEverywhere.app.AlertDialog;

【讨论】:

  • 这是否会破坏实际上可以简单地使用 android.app.AlertDialog 的 ICS 设备上的功能?我担心它可能...
  • @DanielSmith 我认为它不应该,因为它有'android.app.AlertDialog'
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-09-24
  • 1970-01-01
相关资源
最近更新 更多