title: set background over the image on ImageView
body: <p>My gridView displays images (<code>imageItem</code>) from local storage with <code>Picasso</code>. Image's state is changed when it is selected by clicking the select icon in the top right conner, and on the selected state, the image has blue border like this: 
  <img src="https://i.stack.imgur.com/0TlGi.png" alt="blue border"></p>
  
  <p>I tried something like this: </p>
  
  <pre><code>public void onClick(View v) {
              if(!v.isSelected()){
                  imageItem.setBackgroundResource(R.drawable.photoborder);
              }else{
                  imageItem.setBackgroundDrawable(null);
              }
          }
      });
  </code></pre>
  
  <p>And I did see the border when the image has not been loaded.
  When Picasso finishes loading image, the border has been covered:</p>
  
  <p><img src="https://i.stack.imgur.com/2U6Z1.png" alt="border has been covered"></p>
  
  <p>How to set border over image in ImageView?
  Thank you very much for any suggestion!!</p>
  
  <p>Here is the layout for each image item:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
         &lt;custome.SquaredImageView
          android:id="@+id/image_item_in_gridview"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:src="@drawable/ic_launcher"
          android:background="@drawable/attachment_gallery_images_items_background" /&gt;
  
      &lt;ImageView
          android:id="@+id/imageCheckStatus"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:layout_marginRight="2dp"
          android:layout_marginTop="2dp"
          android:padding="2dp"
          android:src="@drawable/abc_ic_cab_done_holo_dark" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>