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

前端 未结 30 4023
感动是毒
感动是毒 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 04:54

    You have many solutions to that error.

    1. You should use Activity or FragmentActivity instead of ActionbarActivity or AppCompatActivity

    2. If you want use ActionbarActivity or AppCompatActivity, you should change in styles.xml Theme.Holo.xxxx to Theme.AppCompat.Light (if necessary add to DarkActionbar)

    If you don't need advanced attributes about action bar or AppCompat you don't need to use Actionbar or AppCompat.

提交回复
热议问题