MenuDrawer 样式错误
error in MenuDrawer Style
我用这个代码
<style name="MenuDrawerStyle" parent="MenuDrawer.Widget.Category">
<item name="mdActiveIndicator">@drawable/menu_arrow</item>
<item name="mdMenuSize">250dp</item>
</style>
并出现此错误
错误:找不到与给定名称匹配的资源:attr 'mdActiveIndicator'
有什么问题?
尝试this解决方案它看起来非常相似
If you are using custom attributes for a gradle library then don't forget to
mark it as such. The gradle build file of the library needs:
apply plugin: 'android-library'
instead of
apply plugin: 'android'
我用这个代码
<style name="MenuDrawerStyle" parent="MenuDrawer.Widget.Category">
<item name="mdActiveIndicator">@drawable/menu_arrow</item>
<item name="mdMenuSize">250dp</item>
</style>
并出现此错误
错误:找不到与给定名称匹配的资源:attr 'mdActiveIndicator'
有什么问题?
尝试this解决方案它看起来非常相似
If you are using custom attributes for a gradle library then don't forget to mark it as such. The gradle build file of the library needs:
apply plugin: 'android-library'
instead of
apply plugin: 'android'