title: Is it possible to use a variable as a value in a XML? (JAVA)
body: <p>I want to use the values from &quot;<strong>valueFrom</strong>&quot; and &quot;<strong>valueTo</strong>&quot; as <strong>variables</strong> / I want to <strong>change</strong> them on a specific condition (JAVA). Is it possible?</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
  &lt;set xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
      &lt;objectAnimator android:duration=&quot;4000&quot; android:propertyName=&quot;scaleX&quot; android:valueFrom=&quot;1&quot; android:valueTo=&quot;14&quot;/&gt;
  
      &lt;objectAnimator android:duration=&quot;4000&quot; android:propertyName=&quot;scaleY&quot; android:valueFrom=&quot;1&quot; android:valueTo=&quot;14&quot;/&gt;
  
      &lt;objectAnimator android:duration=&quot;2300&quot; android:propertyName=&quot;pivotX&quot; android:valueFrom=&quot;0&quot; android:valueTo=&quot;2600&quot;/&gt;
  
      &lt;objectAnimator android:duration=&quot;2300&quot; android:propertyName=&quot;pivotY&quot; android:valueFrom=&quot;0&quot; android:valueTo=&quot;3900&quot;/&gt;
  
  &lt;/set&gt;
  </code></pre>