title: android: assigning a constant value to a xml-element
body: <p>I'm currently programming an android app. There I am stuck with xml-layout.
  Is it possible to assign a value to an xml-tag using a variable (constant) defined in a class?</p>
  
  <p>i have a class called Constants.java for all my program constants. i do this for better maintainability.
  now i would like to use one of this constants, e.g. VAL as defined below as value for an ui-widged.</p>
  
  <pre><code>public class Constants {
  public static final int VAL = 10;
  ...
  }
  </code></pre>
  
  <p>in my case, the widget is a progressbar (horizontal style) and i would like to define the "android:max" value.
  normally one can write:</p>
  
  <pre><code>android:max="10"
  android:max="@Integer/val
  </code></pre>
  
  <p>but i would like to use the value defined in my Constants class, something like:</p>
  
  <pre><code>android:max="Constants.VAL"
  </code></pre>
  
  <p>is there a solution for that?</p>
  
  <p>thanks</p>