title: How to disable touch of previous layout
body: <p>I've android layout as follows:</p>
  
  <pre><code>&lt;RelativeLayout&gt;
  
      &lt;Layout
          android:id="@+id/login_fragment"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:name="com.test.console.LoginFragment"  /&gt;
  
      &lt;Layout
          android:id="@+id/transperent_fragment"
          android:name="com.test.transperentFragment"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@drawable/body_texture"
          android:alpha="0.2"&gt; /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/kLjTR.png" alt="If I touch on transparent layer still login button gets clicked. So how to avoid login button click after touch on transparent layout"></p>
  
  <p>If I touch on transparent layer still login button gets clicked. So how to avoid login button click after touch on transparent layout</p>