xml中的Android xml引用不起作用 [英] Android xml reference within xml doesn't work
本文介绍了xml中的Android xml引用不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将新的材质设计应用于我的android应用,而我的xml文件有一个小问题.
I want to apply the new material design to my android app and have a small problem with my xml file.
<item name="keyline_margin">16dp</item>
<item name="keyline_margin_content">72dp</item>
<!-- bla bla bla -->
<item name="navigation_margin_content">@dimen/keyline_margin_content</item>
我想从"navigation_margin_content"到"keyline_margin_content",但是Android Studio无法解析符号"@ dimen/keyline_margin_content" ...
I want to reference from "navigation_margin_content" to "keyline_margin_content" but Android Studio can't resolve symbol "@dimen/keyline_margin_content"...
它已经适用于我的字符串和颜色.我已经重建了我的项目.
It works already with my string and colors. I rebuilt my project already.
推荐答案
您应该使用<dimen
代替<item
,它应该可以工作
you should use <dimen
instead of <item
and it should work
这篇关于xml中的Android xml引用不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文