set a value to xml
<p>Using sharedpreferences I save a value. I need to set this value (duration) to xml file. How I resolve?</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;alpha xmlns:android="http://schemas.android.com/apk/res/android"
   android:interpolator="@android:anim/accelerate_interpolator"
   android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="1500" /&gt;
</code></pre>
