私は次のようにAndroidのレイアウトを持っています:
<RelativeLayout>
    <Layout
        android:id="@+id/login_fragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:name="com.test.console.LoginFragment"  />
    <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"> />
</RelativeLayout>

透明なレイヤーに触れると、ログインボタンがクリックされます。透明なレイアウトに触れた後にログインボタンのクリックを避ける方法