title: how to set background color of image in Android
body: <p>I have png image which have some transparent area in between image. I am trying to set color programmatically to that area but its not working.</p>
  
  <p>This is my xml layout</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:card_view="http://schemas.android.com/apk/res-auto"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:orientation="vertical"&gt;
  
  &lt;com.mikhaellopez.circularimageview.CircularImageView
      android:id="@+id/iv_cat_icon"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerInParent="true"
      android:src="@drawable/del"
      card_view:civ_border_color="@color/tabsScrollColor" /&gt;
     &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>in xml i have custom attribute  </p>
  
  <pre><code>  xmlns:card_view="http://schemas.android.com/apk/res-auto
  </code></pre>
  
  <p>using this card_view in xml i am able to set color but i need to change programmatically its color.is there anyway i can set this property programatically? Please anyone help me out.<a href="https://i.stack.imgur.com/kQUI9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kQUI9.png" alt="how to fill color"></a></p>