版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/LXFX1108/article/details/82112095
问题:java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this xxxActivity.
解决方案:
将xxxActivity 添加theme :
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
推荐在自定义Dialog时,设置样式
MultiStateDialog refundDialog = new MultiStateDialog(this, R.style.MyMiddleDialogStyle);
<style name="AppBaseTheme" parent="Theme.AppCompat.Light.NoActionBar"> <!--android:Theme.Holo.Light.NoActionBar Theme customizations available in newer API levels can go in res/values-vXX/styles.xml, while customizations related to backward-compatibility can go here. --> </style>