title: How to use Dynamics variables in layout properties?
body: <p>Hi i'm a new developer in Android</p>
  
  <p>and i want to create global variable to put them in my Layout like that:</p>
  
  <p>in Java:<code>final dimen myglobalValue = screenSize.width;
  final dimen myglobalValue2 = screenSize.height;</code></p>
  
  <p>in Layout:</p>
  
  <pre><code>    &lt;TextView
  android:layout_width="@dimen/myglobalValue"
  android:layout_height="@dimen/myglobalValue2"
  android:text="@string/app_name"
  android:textSize="18dp"
  android:textColor="#ffffffff"
  android:layout_alignParentBottom="true"
  android:layout_alignParentRight="true" /&gt;
  </code></pre>
  
  <p>but in don't know how to do.</p>