You need to use a Theme.AppCompat theme (or descendant) with this activity

前端 未结 30 4134
感动是毒
感动是毒 2020-11-21 04:42

Android Studio 0.4.5

Android documentation for creating custom dialog boxes: http://developer.android.com/guide/topics/ui/dialogs.html

If you want a custom d

30条回答
  •  你的背包
    2020-11-21 05:19

    I was experiencing this problem even though my Theme was an AppCompat Theme and my Activity was an AppCompatActivity (or Activity, as suggested on other's answers). So I cleaned, rebuild and rerun the project.

    (Build -> Clean Project ; Build -> Rebuild Project ; Run -> Run)

    It may seem dumb, but now it works great!

    Just hope it helps!

提交回复
热议问题