【问题标题】:Dialog boxes in Marshmallow have transparent backgroundMarshmallow 中的对话框具有透明背景
【发布时间】:2016-01-05 12:14:53
【问题描述】:

我的手机上运行的是 Android 6.0.1 Marshmallow,我注意到第三方应用程序(包括我自己的应用程序)中存在很多 GUI 故障。最常见的故障似乎是对话框具有透明背景(谷歌自己的应用程序很好,只有第三方应用程序受到影响)。

我搜索了论坛,但很难找到其他人报告类似问题,所以我想知道是否应该等到棉花糖的更新版本发布后再尝试解决此问题。

其他人有同样的问题吗?

【问题讨论】:

    标签: android android-6.0-marshmallow


    【解决方案1】:

    简单的解决方案,我未能将主题添加到 AlertDialog 构建器。

    AlertDialog.Builder(this, AlertDialog.THEME_DEVICE_DEFAULT_LIGHT)
    

    【讨论】:

      猜你喜欢
      • 2012-06-03
      • 1970-01-01
      • 2015-07-17
      • 1970-01-01
      • 2023-03-29
      • 2018-05-30
      • 2017-04-30
      • 2014-08-07
      相关资源
      最近更新 更多