Android:为什么自定义按钮主题不适用于对话框?

标签 android themes android-alertdialog

因此,我正在使用实现自定义按钮集的应用程序范围的主题。自定义按钮在应用程序的所有 Activity 中显示得很好。然而,一项 Activity 调用包含两个按钮的警报对话框。不幸的是,自定义按钮主题拒绝在此处应用。

我知道我可以实现另一个 Activity 来代替警报对话框,它模仿它的功能,但我必须这样做似乎不合逻辑。

我不明白的是,为什么我的主题也不适用于警报对话框。是什么赋予对话框避免应用范围主题的特权?

最佳答案

关于Android:为什么自定义按钮主题不适用于对话框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5482550/

相关文章:

java - 如何根据索引而不是键从 LinkedHashMap 获取值?

android - Android C++ fopen fwrite 和 fclose 如何工作?

android - 支持 Android Pie 中的浅色和深色主题

drupal - 使用主题函数在 body 标签之后插入代码

android - 警告框不可见

android - 单击 ListView 项时如何关闭 AlertDialog

android - 应用已关闭但音乐仍在播放

android - 从 "Resource IDs will be non-final in Android Gradle Plugin version 5.0, avoid using them as annotation attributes"对 ButterKnife 的影响

R网格额外: modify theme on the fly for a single tableGrob?

android - 自定义警报对话框滚动问题