title: Defining width values for xml in String
body: <p>I have dozens of ImageViews in my xml file and defined the length in strings.xml such as <code>string name="cardWidth"&gt;100dp&lt;/string&gt;</code> and then had <code>content_main.xml</code> use that string in the width. Like <code>android:layout_width="@string/cardWidth"</code> that way I could just change the value once and see how all the images displayed.  </p>
  
  <p>No problems with the compile but got a run time error </p>
  
  <blockquote>
    <p>Binary XML file line #XX:
     You must supply a layout_width attribute.  </p>
  </blockquote>
  
  <p>I researched and I saw in S.O. that this will occur when you use a string in the value.  I'll probably just hard code the value once I'm happy with it but is there a way around this?</p>
  
  <p>Thanks!</p>
  
  <p>Sorry for the formatting, it's my first question here!</p>