title: Defining variable in XML file
body: <p>I have an XML file with 5 textviews, all with the same textSize. Currently, I define the size like this:</p>
  
  <p><code>android:textSize="30dp"</code></p>
  
  <p>However, I want a quick way to apply something like:</p>
  
  <p><code>android:textSize="text_size"</code></p>
  
  <p>Where textSize would be a variable I define somewhere, and can use wherever I want in my XML file. I tried defining these variables in the strings.xml file in the Android project, and calling them like this:</p>
  
  <p><code>android:textSize="@string/text_size"</code></p>
  
  <p>Where it would be defined like this in strings.xml</p>
  
  <p><code>&lt;string name="text_size"&gt;30dp&lt;/string&gt;</code></p>
  
  <p>It worked fine in Ecplise itself, and showed just fine in the Graphic Layout. But when I tried running the app on my phone, it crashed.</p>
  
  <p>So, is there a way to define variables in my XML layout files? Thanks.</p>