mardi 26 mai 2015

Android xml reference within xml doesn't work

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>

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.

Aucun commentaire:

Enregistrer un commentaire