title: Pass touch events to Activity behind current Activity
body: <p>I have two Activities, one of them displays a RecyclerView and the other displays an image. Clicking on an item in the RecyclerView displays the second Activity with a small image related to the clicked item and the background being transparent, showing the first Activity.</p>
  
  <p>I'm trying to get the second Activity to ignore all touch events outside the bounds of the image, so that the list can be scrolled with the Image on screen. This is achievable with </p>
  
  <pre><code>getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL, WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL);   
  </code></pre>
  
  <p>However this only works when the Window for the second Activity does not take up the whole screen. This is an example of the second Activities layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;CustomFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@color/transparent"&gt;
  
    &lt;ImageView
       android:id="@+id/imageView_item"
       android:layout_width="150dp"
       android:layout_height="150dp"
       android:background="@color/colorPrimary"
       android:layout_gravity="center"/&gt;
  
  &lt;/CustomFrameLayout&gt;
  </code></pre>
  
  <p>Since the CustomFrameLayout has a height and width that matches the parent, it intercepts all touch events that aren't inside the ImageView. </p>
  
  <p>I thought that overriding onInterceptTouchEvent in CustomFrameLayout would allow me to ignore unwanted touch events with the following code:</p>
  
  <pre><code>@Override
  public boolean onInterceptTouchEvent(MotionEvent ev) {
      if (/* Is touch event within bounds of ImageView */) {
          return true;
      }
      return false; //Otherwise don't intercept
  }
  </code></pre>
  
  <p>But that doesn't work either, does anyone have any other ideas?</p>
  
  <p>Let's say that the FrameLayout needs to be fullscreen and I can't use Fragments, is this doable?</p>