Changing background of app gradually
<p>I have an app with certain background and i want to change it to different background very nicely and gradually on a button click.</p>

<p>I tried doing it with objectanimator by setting background attribute of root layout to two png files that are in my drawable folder but it did not work as type of value of background is in drawable.</p>

<blockquote>
  <p>My root layout is relative layout and i want to change its background.</p>
</blockquote>

<pre><code>RelativeLayout.setbackground(drawable image);
</code></pre>

<p>,and objectanimator does not take property with values that are not int,float etc which in my case i have drawable type. </p>

<pre><code>objectanimator.offloat(view,property,values....);
</code></pre>

<p>What are the best ways to accomplish this without any library?</p>