我的
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>
解决方法
@H_301_9@ 有两个选项可以使您的底部布局不可点击:>通过添加属性使你的底层(或按钮)不可点击android:clickable =“false”
>通过添加属性android:clickable =“true”使顶层可点击,然后触摸不会传递到较低的图层.
希望它能帮助你!