title: get view position from background activity and pass to overlay fragment in android
body: <p>I have created transparent fragment over an activity. This transparent fragment is working as a help to user to point particular view shown in background. </p>
  
  <ol>
  <li><p>I want perfect x &amp; y coordinates of view components from  background activity and pass them to transparent fragment using bundle. 
  and set position of arrow on fragment accordingly to point them dynamically regardless of phone or tablet screen size and resolution.</p></li>
  <li><p>I am creating fragment from <code>onCreate()</code> method of an activity and I have already tried with <code>getX()</code>, <code>getY()</code>, <code>getLocationOnScreen()</code>,<code>getLocationOnWindow()</code>, <code>getTop()</code>, <code>getLeft()</code>,etc but all methods returns zero. so how can I get the coordinates of view placed in activity.</p></li>
  <li><p>If user touch anywhere on fragment it should be destroy/detach. How can I achieve this? <code>getFragmentManager().beginTransaction().remove(f).commit();</code>
  or replace with null anything is not working.</p></li>
  <li><p>I want to disable background when fragment is created on activity. how I can do this?
  Thank you in advance!! </p></li>
  </ol>