Need to get the image view location(after padding)
<p>I am developing application for android and I have 2 images (one overlapping most of the other) so they look like they are stacked beside each other. The way I achieved the overlapping inside my framelayout was by using padding. I want to get the location of image inside the imageview( meaning after the padding)
I have this in my xml</p>

<pre><code> &lt;FrameLayout
     android:id="@+id/frameLayoutBottom"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_alignParentBottom="true"
     android:layout_centerHorizontal="true" &gt;

     &lt;ImageView
         android:id="@+id/ivBottom1"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:src="@drawable/c10" /&gt;
     &lt;ImageView
         android:id="@+id/ivBottom2"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"             
         android:paddingLeft="10dp"
         android:src="@drawable/c11" /&gt;
</code></pre>

<p>I want to get the location of C11</p>

<p>calling getLocationOnScreen is getting me the same location for both images becuase really they are on top of each other with some padding making C11 looks like to the left of C10
any idea how I can achieve? All suggestions are welcome</p>

<p>Thanks</p>
