RelativeLayout 都注册了点击事件
只能点击最上层的布局
<RelativeLayout
android:layout_width="match_parent"
android:layout_marginHorizontal="20dp"
android:clickable="true"
android:layout_height="match_parent">
<com.lenovo.manufacture.question3.Q3View
android:id="@+id/q3View"
android:paddingHorizontal="20dp"
android:paddingTop="10dp"
android:layout_width="match_parent"
android:clickable="true"
android:layout_height="match_parent"/>
<com.lenovo.manufacture.question3.Q3WindowTopView
android:id="@+id/q3wtv"
android:layout_width="match_parent"
android:clickable="true"
android:layout_height="match_parent"/>
</RelativeLayout>
Q3View 自定义View
Q3WindowTopView 自定义ViewGroup
只能点击最上层的布局,你想怎么样呢?