在样式定义中使用Theme.Dialog.AppError作为父元素



这是显示错误的XML代码:

<style name="custom" parent="Theme.Dialog.AppError">
    <!-- it shows error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Dialog.AppError'-->.
</style>

为什么我不能在样式定义中使用Theme.Dialog.AppError作为父元素?

没有Theme.Dialog.AppError

我想你在找

<style name="custom" parent="Theme.Micro.Dialog.AppError">
            ...
            </style>

Android源代码:https://android.googlesource.com/platform/frameworks/base/+/master/core/res/res/values-watch/themes.xml

最新更新