zqzhs 2016-09-08 01:33 采纳率: 50%
浏览 1477
已采纳

Android style继承"AlertDialog"的异常问题

本人小白一个,最近在看动态加载,打算把别人的应用放入自己的项目中,但是在运行项目·时报了这么一个错误:
error: Error retrieving parent for item: No resource found that matches the given name '@android:style/AlertDialog'
error: Error retrieving parent for item: No resource found that matches the given name '@android:style/DialogWindowTitle'.
查看代码,是这values-v23下的这两行导致的编译不通过:

 <style name="Base.TextAppearance.AppCompat.Widget.Button.Inverse" parent="@android:style/AlertDialog" />
    <style name="Base.Widget.AppCompat.Button.Colored" parent="@android:style/DialogWindowTitle" /> 
    如果说我们无法直接继承系统主题里的AlertDialog的style的话,那么为什么他们可以用呢?困扰已久,请大牛指点一二!!
  • 写回答

4条回答 默认 最新

  • 简一_hz 2016-09-08 01:47
    关注

    一般是版本库的问题,看下这篇内容http://blog.sina.com.cn/s/blog_3e28c8a50101g14g.html

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?