title: Create Overlay ImageView Animation Google Map
body: <p>I am trying to make my overlay image to do following things:</p>
  
  <ul>
  <li>onClick / onDrag of map , show a constant image at the middle of map
  which is a pin</li>
  <li>onTouchUp , change marker image to Loading marker and once data
  loading complete change loading image to new image with text.</li>
  </ul>
  
  <p>Here is a pretty similar solution to my problem:</p>
  
  <p><a href="https://i.stack.imgur.com/lfmSi.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/lfmSi.gif" alt="animatedMarker"></a></p>
  
  <p>What i have done so far ?</p>
  
  <ul>
  <li>Placed an imageview over my google map in the middle , and got
  loacation of that imageView using <code>mMap.getCameraPosition().target</code>
  which gives approx middle position coordinates using
  <code>setOnCameraChanged</code> , i know that's deprecated, well have a better
  solution?.</li>
  <li>Rest of the part i can't figure out , though i have read several SO questions claiming they have implemented it wrapping framelayout over fragment of google map, and applying onTouch on that, but cannot find an authentic answer to that one too.</li>
  </ul>
  
  <p>my xml of fragment where all this is happening looks like this :</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".fragments.MovableMapFragment"&gt;
  
      &lt;fragment
          android:id="@+id/map_frag_fmm"
          android:name="com.google.android.gms.maps.SupportMapFragment"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_above="@+id/tablayout_global_tabs"
          android:layout_alignParentTop="true" /&gt;
  &lt;! -- long xml ahead --&gt;
  </code></pre>
  
  <p>Someone know how to achieve this kind of behavior ? </p>