title: How to fill imageview's background color like a progressbar?
body: <p>I have a png image something like below and I need to fill its background color according to its capacity. </p>
  
  <p>For example if tank has oil %100 percent of its capacity, background should be yellow , if has %25 , background should be %25 percent yellow and %75 transparent.</p>
  
  <p>Assume that this is a healthbar in a game.</p>
  
  <p><a href="https://i.stack.imgur.com/ub9Hy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ub9Hy.png" alt="enter image description here"></a></p>
  
  <p>this is what i have in my layout, just a simple imageview in a linearlayout.
  Is there any way to achieve this using animation, clip or something ?</p>
  
  <pre><code> &lt;ImageView
              android:id="@+id/ivOilTank"
              android:layout_width="0dp"
              android:src="@mipmap/oilTank"
              android:layout_height="match_parent"
              android:layout_weight="1"&gt;
  </code></pre>