偶然间遇到的一个问题,自定义view上传图片进度条,发现下层的控件还可以选。。。后来改成自定义dialog了
抽空找了找资料 http://wenda.so.com/q/1447517100721093 发现好像没什么卵用。。。
下面来干货:
方法:对当前LinearLayout(id : layout)增加监听就行了
findViewById(R.id.layout).setOnClickListener(null);
布局如下
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.bxlt.demo01.MainActivity">
android:id="@+id/img"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_launcher" />
android:id="@+id/layout"
android:layout_width=